mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
* Added type definitions for url-params * add test file * fix naming * fix naming
6 lines
264 B
TypeScript
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);
|