mirror of
https://github.com/langgenius/dify.git
synced 2026-11-11 22:02:23 +08:00
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
12 lines
388 B
TypeScript
12 lines
388 B
TypeScript
export const segmentImportStatus = {
|
|
waiting: 'waiting',
|
|
processing: 'processing',
|
|
completed: 'completed',
|
|
error: 'error',
|
|
} as const
|
|
|
|
export type SegmentImportStatus = (typeof segmentImportStatus)[keyof typeof segmentImportStatus]
|
|
|
|
export const isSegmentImportStatus = (value: string): value is SegmentImportStatus =>
|
|
Object.values<string>(segmentImportStatus).includes(value)
|