Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use correct schema value when importing type
- Loading branch information
1 parent
6a70631
commit 4873796
Showing
3 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { z } from "stainless"; | ||
import { PostType as __symbol_PostType } from "./models"; | ||
import { PostType as __symbol_PostType } from "./create"; | ||
export const Query: z.ZodTypeAny = z.object({ include: z.includes(z.lazy(() => __symbol_PostType), 3).optional() }); | ||
export const Body: z.ZodTypeAny = z.object({ body: z.string() }); | ||
export const PostType: z.ZodTypeAny = z.any(); | ||
export const __postu32$api$posts: any = { query: z.lazy(() => Query), body: z.lazy(() => Body), response: z.lazy(() => PostType) }; | ||
export const __postu32$api$posts: any = { query: z.lazy(() => Query), body: z.lazy(() => Body), response: z.lazy(() => __symbol_PostType) }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { z } from "stainless"; | ||
import { PostType as __symbol_PostType } from "./models"; | ||
import { PostType as __symbol_PostType } from "./retrieve"; | ||
import * as __u46u46$u46u46$u46u46$libs$prismadbu46ts from "../../../libs/prismadb"; | ||
export const Query: z.ZodTypeAny = z.object({ include: z.includes(z.lazy(() => __symbol_PostType), 3).optional(), select: z.selects(z.lazy(() => __symbol_PostType), 3).optional() }); | ||
export const Path: z.ZodTypeAny = z.object({ post: z.string().prismaModelLoader(__u46u46$u46u46$u46u46$libs$prismadbu46ts.prisma.post) }); | ||
export const PostType: z.ZodTypeAny = z.any(); | ||
export const __getu32$api$posts$u123postu125: any = { query: z.lazy(() => Query), path: z.lazy(() => Path), response: z.lazy(() => PostType) }; | ||
export const __getu32$api$posts$u123postu125: any = { query: z.lazy(() => Query), path: z.lazy(() => Path), response: z.lazy(() => __symbol_PostType) }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters