Skip to content

Commit

Permalink
fix: tighten schema definition types (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Jul 28, 2023
1 parent 347c312 commit 3b91d06
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 @@ -61,11 +61,11 @@ export interface InputObject {
$schema?: Schema;
$resolve?: ResolveFn;
$default?: any;
[key: string]: any;
[key: string]: JSValue | InputObject;
}

export type InputValue = InputObject | JSValue;

export type SchemaDefinition = {
[x: string]: JSValue | InputObject | SchemaDefinition;
[x: string]: JSValue | InputObject;
};

0 comments on commit 3b91d06

Please sign in to comment.