From 3b91d0649d1beeebb5b2f8fa88443bb8955d08e8 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 28 Jul 2023 11:36:09 +0200 Subject: [PATCH] fix: tighten schema definition types (#102) --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index cdd65b9..a211e1f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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; };