Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
34
node_modules/zod-to-ts/dist/index.d.ts
generated
vendored
Normal file
34
node_modules/zod-to-ts/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import { ZodTypeAny } from 'zod';
|
||||
import ts from 'typescript';
|
||||
|
||||
type ZodToTsOptions = {
|
||||
/** @deprecated use `nativeEnums` instead */
|
||||
resolveNativeEnums?: boolean;
|
||||
nativeEnums?: 'identifier' | 'resolve' | 'union';
|
||||
};
|
||||
declare const resolveOptions: (raw?: ZodToTsOptions) => {
|
||||
resolveNativeEnums?: boolean | undefined;
|
||||
nativeEnums: 'identifier' | 'resolve' | 'union';
|
||||
};
|
||||
type ResolvedZodToTsOptions = ReturnType<typeof resolveOptions>;
|
||||
type ZodToTsStore = {
|
||||
nativeEnums: ts.EnumDeclaration[];
|
||||
};
|
||||
type ZodToTsReturn = {
|
||||
node: ts.TypeNode;
|
||||
store: ZodToTsStore;
|
||||
};
|
||||
type GetTypeFunction = (typescript: typeof ts, identifier: string, options: ResolvedZodToTsOptions) => ts.Identifier | ts.TypeNode;
|
||||
type GetType = {
|
||||
_def: {
|
||||
getType?: GetTypeFunction;
|
||||
};
|
||||
};
|
||||
|
||||
declare const createTypeAlias: (node: ts.TypeNode, identifier: string, comment?: string) => ts.TypeAliasDeclaration;
|
||||
declare const printNode: (node: ts.Node, printerOptions?: ts.PrinterOptions) => string;
|
||||
declare const withGetType: <T extends ZodTypeAny & GetType>(schema: T, getType: GetTypeFunction) => T;
|
||||
|
||||
declare const zodToTs: (zod: ZodTypeAny, identifier?: string, options?: ZodToTsOptions) => ZodToTsReturn;
|
||||
|
||||
export { GetType, ZodToTsOptions, createTypeAlias, printNode, withGetType, zodToTs };
|
Reference in New Issue
Block a user