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;