Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #141 from hexinchen/fix-urltemplates-TS2322
Browse files Browse the repository at this point in the history
cast newObject to T to fix build error
  • Loading branch information
saulshanabrook committed May 24, 2020
2 parents ebdcf03 + d779d0b commit 8132153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dataregistry/src/urltemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class URLTemplate<T extends { [arg: string]: any }> extends TypedURL<T> {
}
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;
Expand Down

0 comments on commit 8132153

Please sign in to comment.