From be3d1b45e75dfccdcb0c6f60ba6e8dd766e374ab Mon Sep 17 00:00:00 2001 From: Florian Eckerstorfer Date: Tue, 5 Jan 2021 15:25:38 +0100 Subject: [PATCH] fix(types): add generic to Reference.create() (#1208) --- src/Reference.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Reference.ts b/src/Reference.ts index c57b472a9..0f81d81f9 100644 --- a/src/Reference.ts +++ b/src/Reference.ts @@ -10,8 +10,8 @@ export type ReferenceOptions = { map?: (value: unknown) => TValue; }; -export function create(key: string, options?: ReferenceOptions) { - return new Reference(key, options); +export function create(key: string, options?: ReferenceOptions) { + return new Reference(key, options); } export default class Reference {