mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Add new type for URITemplate input parameter.
This commit is contained in:
3
types/urijs/index.d.ts
vendored
3
types/urijs/index.d.ts
vendored
@@ -236,9 +236,10 @@ declare namespace uri {
|
||||
|
||||
type URITemplateValue = string | ReadonlyArray<string> | { [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 {
|
||||
|
||||
Reference in New Issue
Block a user