Skip to content

Commit

Permalink
infer zod schema
Browse files Browse the repository at this point in the history
  • Loading branch information
olih committed Jan 18, 2025
1 parent 20335c3 commit 9a7ca8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/incy-wincy-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const section = z
])
.describe('A selection of sections');

export const sourceFile = z
export const sourceFileSchema = z
.object({
programmingLanguage,
sourceFilename: stringFields.string1To200.describe(
Expand All @@ -144,3 +144,5 @@ export const sourceFile = z
})
.strict()
.describe('A representation of the source code');

export type IncyWincySourceModel = z.infer<typeof sourceFileSchema>;

0 comments on commit 9a7ca8f

Please sign in to comment.