Skip to content

Commit

Permalink
Fixed the ParsedConcrete type to include number keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza committed Jan 25, 2022
1 parent 3eb5fe4 commit 711d9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilityTypes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ISchema } from './structure/types';

export type Parsed<T> = T extends ISchema<infer I> ? I : never;
export type ParsedConcrete<B, T, ConcreteType extends string> = B & Parsed<T> & { type: ConcreteType };
export type ParsedConcrete<B, T, ConcreteType extends string|number> = B & Parsed<T> & { type: ConcreteType };
export type ValueOrProvider<T> = T | (() => T);

type UndefinedKeys<T> = {
Expand Down

0 comments on commit 711d9e7

Please sign in to comment.