-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move disc and bag schema/type defs to shared types package
- Loading branch information
1 parent
fff5280
commit ecea1f9
Showing
6 changed files
with
12 additions
and
32 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
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
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
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
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,13 +1,15 @@ | ||
import { bagSchema, discQuerySchema, discSchema } from "@helpers"; | ||
import type * as types from "discit-types"; | ||
|
||
import { discQuerySchema } from "@helpers"; | ||
import { z } from "@hono/zod-openapi"; | ||
|
||
export type TBase = { | ||
created_at: Date; | ||
updated_at: Date; | ||
}; | ||
|
||
export type TDisc = z.infer<typeof discSchema>; | ||
export type TDisc = types.TDisc; | ||
|
||
export type TDiscQuery = z.infer<typeof discQuerySchema>; | ||
|
||
export type TBag = z.infer<typeof bagSchema>; | ||
export type TBag = types.TBag; |