Skip to content

Commit

Permalink
chore: s/ / /g
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Jul 8, 2022
1 parent d0f8cda commit af2d910
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib/util-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,11 @@ export type SchemaOf<T> = ObjectValidator<T>;
*/
export type InferType<T extends ObjectValidator<any>> = T extends ObjectValidator<any, infer U> ? U : never;

//

export type InferResultType<T extends Result<any>> = T extends Result<infer U> ? U : never;

//
export type UnwrapTuple<T extends [...any[]]> = T extends [infer Head, ...infer Tail] ? [Unwrap<Head>, ...UnwrapTuple<Tail>] : [];
export type Unwrap<T> = T extends BaseValidator<infer V> ? V : never;

//
export type UnshiftTuple<T extends [...any[]]> = T extends [T[0], ...infer Tail] ? Tail : never;
export type ExpandSmallerTuples<T extends [...any[]]> = T extends [T[0], ...infer Tail] ? T | ExpandSmallerTuples<Tail> : [];

Expand Down

0 comments on commit af2d910

Please sign in to comment.