the-ldk
Version:
Welcome to the LDK! A collection of custom AWS CDK constructs to help you build serverless applications faster.
83 lines (82 loc) • 1.8 kB
TypeScript
import { z as zod } from 'zod';
export declare const successResponseSchema: zod.ZodObject<{
statusCode: zod.ZodLiteral<200>;
body: zod.ZodObject<{
message: zod.ZodString;
}, "strip", zod.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", zod.ZodTypeAny, {
statusCode: 200;
body: {
message: string;
};
}, {
statusCode: 200;
body: {
message: string;
};
}>;
export declare const clientErrorResponseSchema: zod.ZodObject<{
statusCode: zod.ZodLiteral<400>;
body: zod.ZodObject<{
message: zod.ZodString;
}, "strip", zod.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", zod.ZodTypeAny, {
statusCode: 400;
body: {
message: string;
};
}, {
statusCode: 400;
body: {
message: string;
};
}>;
declare const responseSchema: zod.ZodDiscriminatedUnion<"statusCode", [zod.ZodObject<{
statusCode: zod.ZodLiteral<400>;
body: zod.ZodObject<{
message: zod.ZodString;
}, "strip", zod.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", zod.ZodTypeAny, {
statusCode: 400;
body: {
message: string;
};
}, {
statusCode: 400;
body: {
message: string;
};
}>, zod.ZodObject<{
statusCode: zod.ZodLiteral<200>;
body: zod.ZodObject<{
message: zod.ZodString;
}, "strip", zod.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", zod.ZodTypeAny, {
statusCode: 200;
body: {
message: string;
};
}, {
statusCode: 200;
body: {
message: string;
};
}>]>;
export type ExampleFunctionResponse = zod.infer<typeof responseSchema>;
export {};