From d779d0b66d406980398f896d0ac9fbe3f50e0574 Mon Sep 17 00:00:00 2001 From: Hexin Chen Date: Sun, 24 May 2020 22:40:14 +1000 Subject: [PATCH] cast newObject to T to fix build error --- packages/dataregistry/src/urltemplates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dataregistry/src/urltemplates.ts b/packages/dataregistry/src/urltemplates.ts index 9b1895c..c5b6a4f 100644 --- a/packages/dataregistry/src/urltemplates.ts +++ b/packages/dataregistry/src/urltemplates.ts @@ -85,7 +85,7 @@ export class URLTemplate extends TypedURL { } const newObject = Object.fromEntries( Object.entries(args).map(([key, val]) => [key, this.map[key][0](val)]) - ); + ) as T; // If none of the value were none, return the object if (nonNullableValues(newObject)) { return newObject;