7 lines
304 B
TypeScript
7 lines
304 B
TypeScript
|
import { ZodNativeEnumDef } from 'zod';
|
||
|
export type JsonSchema7NativeEnumType = {
|
||
|
type: 'string' | 'number' | ['string', 'number'];
|
||
|
enum: (string | number)[];
|
||
|
};
|
||
|
export declare function parseNativeEnumDef(def: ZodNativeEnumDef): JsonSchema7NativeEnumType;
|
||
|
//# sourceMappingURL=nativeEnum.d.ts.map
|