Merge pull request #32287 from Jeremy-F/master

[uri-templates] Update of 'vars' params type in the fill and fill Object methods
This commit is contained in:
Benjamin Lichtman
2019-01-23 15:19:20 -08:00
committed by GitHub
+2 -2
View File
@@ -8,9 +8,9 @@ declare function utpl(template: string): utpl.URITemplate;
declare namespace utpl {
export interface URITemplate {
fillFromObject(vars: { [key: string]: string }): string;
fillFromObject(vars: { [key: string]: string | { [key: string]: string} }): string;
fill(callback: (varName: string) => string): string;
fill(vars: { [key: string]: string }): string;
fill(vars: { [key: string]: string | { [key: string]: string } }): string;
fromUri(uri: string): { [key: string]: string };
varNames: string[];
template: string;