Skip to content

Commit 02f280d

Browse files
committed
chore: update schemas without full static types
1 parent 6369b84 commit 02f280d

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

_project/models/_src/Blog.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,12 @@ export type BlogPostConstructor = typeof BlogPost
1818
// codegen:start {preset: model}
1919
//
2020
/* eslint-disable */
21-
export interface BlogPost {
22-
readonly body: LongString
23-
readonly createdAt: Date
24-
readonly id: BlogPostId
25-
readonly title: ReasonableString
26-
}
2721
export namespace BlogPost {
2822
/**
2923
* @tsplus type BlogPost.Encoded
3024
*/
31-
export interface Encoded {
32-
readonly body: string
33-
readonly createdAt: string
34-
readonly id: string
35-
readonly title: string
36-
}
37-
export const Encoded: EncodedOps = { $: {} }
25+
export interface Encoded extends EncodedFromApi<typeof BlogPost> {}
26+
export const Encoded: EncodedOps = {}
3827
/**
3928
* @tsplus type BlogPost.Encoded/Ops
4029
*/

_project/resources/_src/Blog/GetPosts.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,12 @@ export type GetPostsResponseConstructor = typeof GetPostsResponse
1515
// codegen:start {preset: model}
1616
//
1717
/* eslint-disable */
18-
export interface GetPostsResponse {
19-
readonly items: readonly BlogPost[]
20-
}
2118
export namespace GetPostsResponse {
2219
/**
2320
* @tsplus type GetPostsResponse.Encoded
2421
*/
25-
export interface Encoded {
26-
readonly items: readonly BlogPost.Encoded[]
27-
}
28-
export const Encoded: EncodedOps = { $: {} }
22+
export interface Encoded extends EncodedFromApi<typeof GetPostsResponse> {}
23+
export const Encoded: EncodedOps = {}
2924
/**
3025
* @tsplus type GetPostsResponse.Encoded/Ops
3126
*/

0 commit comments

Comments
 (0)