diff --git a/types/urijs/index.d.ts b/types/urijs/index.d.ts index 4b5e9706ff..61f1887948 100644 --- a/types/urijs/index.d.ts +++ b/types/urijs/index.d.ts @@ -236,9 +236,10 @@ declare namespace uri { type URITemplateValue = string | ReadonlyArray | { [key: string] : string } | undefined | null; type URITemplateCallback = (keyName: string) => URITemplateValue; + type URITemplateInput = { [key: string]: URITemplateValue | URITemplateCallback } | URITemplateCallback; interface URITemplate { - expand(data: { [key: string]: URITemplateValue | URITemplateCallback } | URITemplateCallback, opts?: Object) : URI; + expand(data: URITemplateInput, opts?: Object) : URI; } interface URITemplateStatic {