DefinitelyTyped/types/url-params/url-params-tests.ts
Daniel Sogl 8c831011f2 Added type definitions for url-params (#25226)
* Added type definitions for url-params

* add test file

* fix naming

* fix naming
2018-04-24 17:12:55 -07:00

6 lines
264 B
TypeScript

import { add, remove, set } from 'url-params';
const url1 = add('http://www.example.com/?foo=2+3+6&baz=6', 'foo', 4);
const url2 = remove('http://www.example.com/?foo=2+3+6&baz=6', 'foo', 3);
const url3 = set('http://www.example.com/?foo=2+3+6&baz=6', 'foo', 3);