UNPKG

zod-to-ts

Version:

generate TypeScript types from your Zod schema

7 lines (6 loc) 541 B
import ts from 'typescript'; import type * as z4 from 'zod/v4/core'; import type { AuxiliaryTypeStore, ZodToTsOptions } from "./types.cjs"; export declare function handleUnrepresentable(unrepresentable: ZodToTsOptions['unrepresentable'], unrepresentableType: string): ts.KeywordTypeNode<ts.SyntaxKind.AnyKeyword>; export declare function createAuxiliaryTypeStore(): AuxiliaryTypeStore; export declare function literalValueToLiteralType(literalValue: z4.util.Literal): ts.LiteralTypeNode | ts.KeywordTypeNode<ts.SyntaxKind.UndefinedKeyword>;