mirror of
https://github.com/langgenius/dify.git
synced 2026-05-12 07:37:09 +08:00
10 lines
407 B
TypeScript
10 lines
407 B
TypeScript
export const INSTANCE_DETAIL_TAB_KEYS = ['overview', 'deploy', 'versions', 'settings'] as const
|
|
|
|
export type InstanceDetailTabKey = typeof INSTANCE_DETAIL_TAB_KEYS[number]
|
|
|
|
const INSTANCE_DETAIL_TAB_KEY_SET = new Set<string>(INSTANCE_DETAIL_TAB_KEYS)
|
|
|
|
export function isInstanceDetailTabKey(value?: string): value is InstanceDetailTabKey {
|
|
return value != null && INSTANCE_DETAIL_TAB_KEY_SET.has(value)
|
|
}
|