initial commit
This commit is contained in:
11
packages/db/utils/index.d.ts
vendored
Normal file
11
packages/db/utils/index.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Extract enum values from a Zod enum or native enum schema.
|
||||
* Supports z.enum([...]) and z.nativeEnum(SomeTsEnum).
|
||||
*/
|
||||
export declare function extractEnumValues<T extends string | number>(schema: any): T[];
|
||||
/**
|
||||
* Build a runtime map: { VAL: "VAL", ... } with proper typing
|
||||
* so callers can import paymentStatusOptions.VOID etc.
|
||||
*/
|
||||
export declare function makeEnumOptions<T extends string | number>(schema: any): { [K in T & (string | number)]: K; };
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
Reference in New Issue
Block a user