-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from FormulaMonks/refactor/stream-type-args
refactor: Simplify type params of KurtStream (and refactor surrounding to match)
- Loading branch information
Showing
5 changed files
with
191 additions
and
194 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import type { ZodObject, ZodRawShape, infer as zodInfer } from "zod" | ||
|
||
export type KurtSchemaInner = ZodRawShape | ||
export type KurtSchema<T extends KurtSchemaInner> = ZodObject<T> | ||
export type KurtSchemaResult<T extends KurtSchemaInner> = zodInfer<ZodObject<T>> | ||
export type KurtSchema<I extends KurtSchemaInner> = ZodObject<I> | ||
export type KurtSchemaResult<I extends KurtSchemaInner> = zodInfer<ZodObject<I>> | ||
|
||
export type KurtSchemaInnerMaybe = KurtSchemaInner | undefined | ||
export type KurtSchemaMaybe<T extends KurtSchemaInnerMaybe> = | ||
T extends KurtSchemaInner ? KurtSchema<T> : undefined | ||
export type KurtSchemaResultMaybe<T extends KurtSchemaInnerMaybe> = | ||
T extends KurtSchemaInner ? KurtSchemaResult<T> : undefined | ||
export type KurtSchemaMaybe<I extends KurtSchemaInnerMaybe> = | ||
I extends KurtSchemaInner ? KurtSchema<I> : undefined | ||
export type KurtSchemaResultMaybe<I extends KurtSchemaInnerMaybe> = | ||
I extends KurtSchemaInner ? KurtSchemaResult<I> : undefined |
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
Oops, something went wrong.