Skip to content

Commit

Permalink
fix: infer type alias
Browse files Browse the repository at this point in the history
* fix: typescript config

* fix: build with tsup

* fix: infer type alias
  • Loading branch information
skarab42 authored Mar 19, 2022
1 parent 0e78519 commit 681c4f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ export type InferType<TType> = TType extends TypeBase<infer TReturn>
? TReturn
: TType;

export type infer<TType> = InferType<TType>;

export type InferSchema<TSchema extends Schema> = {
[Key in keyof TSchema]: TSchema[Key] extends Schema
? InferSchema<TSchema[Key]>
Expand Down Expand Up @@ -182,3 +180,5 @@ export enum ObjectTypeMode {
"STRIP",
"PASSTHROUGH",
}

export type { InferType as infer };

0 comments on commit 681c4f2

Please sign in to comment.