initial commit

This commit is contained in:
2026-04-04 22:13:55 -04:00
commit 5d77e207c9
10181 changed files with 522212 additions and 0 deletions

11
packages/db/utils/index.d.ts vendored Normal file
View 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