From ab9e8c3eaa0b7b1ef258c50563877662ad184445 Mon Sep 17 00:00:00 2001 From: Sunghyun Yoo Date: Fri, 5 Jan 2024 19:40:25 +0900 Subject: [PATCH] fix: update variable type variance to bivariant --- packages/core/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 60e73a4..2ba8e2a 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -6,7 +6,7 @@ export interface DocumentTypeDecoration { * and that the Result is assignable to whatever you pass your result to. The method is never actually * implemented, but the type is valid because we list it as optional */ - __apiType?: (variables: TVariables) => TResult; + __apiType?(variables: TVariables): TResult; } export interface TypedDocumentNode<