Skip to content

Commit

Permalink
Fix type hook typing (#475)
Browse files Browse the repository at this point in the history
String references are acceptable.
  • Loading branch information
joscha authored Sep 21, 2024
1 parent c80c670 commit 445e4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ interface ForSchemaOptions {
noAnonymousTypes: boolean;
omitRecordMethods: boolean;
registry: { [name: string]: Type };
typeHook: (schema: Schema, opts: ForSchemaOptions) => Type | undefined;
typeHook: (schema: Schema | string, opts: ForSchemaOptions) => Type | undefined;
wrapUnions: boolean | 'auto' | 'always' | 'never';
}

Expand Down

0 comments on commit 445e4b1

Please sign in to comment.