uploadthing-codegen
Version:
Generates types for uploadthing routes
105 lines • 2.46 kB
TypeScript
#!/usr/bin/env node
import { z } from "zod";
declare const codegenConfigZ: z.ZodEffects<z.ZodObject<{
routers: z.ZodArray<z.ZodObject<{
schema: z.ZodObject<{
endpoint: z.ZodString;
headers: z.ZodObject<{
Authorization: z.ZodString;
}, "strip", z.ZodTypeAny, {
Authorization: string;
}, {
Authorization: string;
}>;
}, "strip", z.ZodTypeAny, {
endpoint: string;
headers: {
Authorization: string;
};
}, {
endpoint: string;
headers: {
Authorization: string;
};
}>;
generates: z.ZodString;
}, "strip", z.ZodTypeAny, {
schema: {
endpoint: string;
headers: {
Authorization: string;
};
};
generates: string;
}, {
schema: {
endpoint: string;
headers: {
Authorization: string;
};
};
generates: string;
}>, "many">;
hooks: z.ZodObject<{
afterAllFileWrite: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
afterAllFileWrite: string[];
}, {
afterAllFileWrite: string[];
}>;
}, "strip", z.ZodTypeAny, {
routers: {
schema: {
endpoint: string;
headers: {
Authorization: string;
};
};
generates: string;
}[];
hooks: {
afterAllFileWrite: string[];
};
}, {
routers: {
schema: {
endpoint: string;
headers: {
Authorization: string;
};
};
generates: string;
}[];
hooks: {
afterAllFileWrite: string[];
};
}>, {
routers: {
schema: {
endpoint: string;
headers: {
Authorization: string;
};
};
generates: string;
}[];
hooks: {
afterAllFileWrite: string[];
};
}, {
routers: {
schema: {
endpoint: string;
headers: {
Authorization: string;
};
};
generates: string;
}[];
hooks: {
afterAllFileWrite: string[];
};
}>;
export type CodegenConfig = z.infer<typeof codegenConfigZ>;
export {};
//# sourceMappingURL=index.d.ts.map