Skip to content

Commit

Permalink
fix: change mixed generic to unknown from any
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Aug 20, 2022
1 parent 433a452 commit 5e8e8ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mixed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ export interface MixedOptions<TType> {
type?: string;
check?: TypeGuard<TType>;
}
export function create<TType = any>(
export function create<TType = unknown>(
spec?: MixedOptions<TType> | TypeGuard<TType>,
) {
return new MixedSchema<TType | undefined>(spec);
}

export default class MixedSchema<
TType = any,
TType = unknown,
TContext = AnyObject,
TDefault = undefined,
TFlags extends Flags = '',
Expand All @@ -40,7 +40,7 @@ export default class MixedSchema<
}

export default interface MixedSchema<
TType = any,
TType = unknown,
TContext = AnyObject,
TDefault = undefined,
TFlags extends Flags = '',
Expand Down

0 comments on commit 5e8e8ef

Please sign in to comment.