13 lines
354 B
TypeScript
13 lines
354 B
TypeScript
export const DICT_ENSURE_WHITELIST = [
|
|
'crm_product_gg',
|
|
'crm_shfs',
|
|
'crm_product_unit',
|
|
'crm_customer_park'
|
|
] as const
|
|
|
|
export type DictEnsureType = (typeof DICT_ENSURE_WHITELIST)[number]
|
|
|
|
export function isDictEnsureType(dictType: string): dictType is DictEnsureType {
|
|
return (DICT_ENSURE_WHITELIST as readonly string[]).includes(dictType)
|
|
}
|