@types/uritemplate
Advanced tools
Comparing version
@@ -1,7 +0,1 @@ | ||
// Type definitions for URI Template JS 0.3 | ||
// Project: https://github.com/fxa/uritemplate-js | ||
// Definitions by: Chui Tey <https://github.com/teyc> | ||
// Ruben Taelman <https://github.com/rubensworks> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
/* | ||
@@ -8,0 +2,0 @@ UriTemplate Copyright (c) 2012-2013 Franz Antesberger. All Rights Reserved. |
{ | ||
"name": "@types/uritemplate", | ||
"version": "0.3.4", | ||
"description": "TypeScript definitions for URI Template JS", | ||
"version": "0.3.5", | ||
"description": "TypeScript definitions for uritemplate", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uritemplate", | ||
"license": "MIT", | ||
@@ -9,20 +10,22 @@ "contributors": [ | ||
"name": "Chui Tey", | ||
"url": "https://github.com/teyc", | ||
"githubUsername": "teyc" | ||
"githubUsername": "teyc", | ||
"url": "https://github.com/teyc" | ||
}, | ||
{ | ||
"name": "Ruben Taelman", | ||
"url": "https://github.com/rubensworks", | ||
"githubUsername": "rubensworks" | ||
"githubUsername": "rubensworks", | ||
"url": "https://github.com/rubensworks" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/uritemplate" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "05f2345a479c03b73e07cd2f62a76de3bcd995d52aec60126606b739b8d4a9c0", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "4a1f4e497e2f5f5286e9f17ab9944a0bab8af1c13f116bd020d6ab9a2378c7ae", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -5,13 +5,50 @@ # Installation | ||
# Summary | ||
This package contains type definitions for URI Template JS (https://github.com/fxa/uritemplate-js). | ||
This package contains type definitions for uritemplate (https://github.com/fxa/uritemplate-js). | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uritemplate | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uritemplate. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uritemplate/index.d.ts) | ||
````ts | ||
/* | ||
UriTemplate Copyright (c) 2012-2013 Franz Antesberger. All Rights Reserved. | ||
Available via the MIT license. | ||
*/ | ||
Additional Details | ||
* Last updated: Thu, 09 Nov 2017 15:19:58 GMT | ||
export class UriTemplate { | ||
/** | ||
* Expands template into a string using parameter | ||
* supplied | ||
*/ | ||
expand(data: {}): string; | ||
} | ||
export interface UriTemplateErrorOptions { | ||
expressionText: string; | ||
message: string; | ||
position: number; | ||
} | ||
export class UriTemplateError { | ||
constructor(options: UriTemplateErrorOptions); | ||
} | ||
/** | ||
* parse template text returning instance of UriTemplate | ||
* @param template text | ||
* @return instance of UriTemplate | ||
* @example | ||
* import UriTemplate = require('uritemplate'); | ||
* let template = UriTemplate.parse('http://localhost/query{?name,city}'); | ||
* let result = template.expand({name: 'Jayden', city: 'Wodonga'}); | ||
* // returns http://localhost/query?name=Jayden&city=Wodonga | ||
*/ | ||
export function parse(templateText: string): UriTemplate; | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 18 Oct 2023 11:45:07 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Chui Tey <https://github.com/teyc>, Ruben Taelman <https://github.com/rubensworks>. | ||
These definitions were written by [Chui Tey](https://github.com/teyc), and [Ruben Taelman](https://github.com/rubensworks). |
Sorry, the diff of this file is not supported yet
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4581
21.93%1
-50%54
217.65%30
-14.29%