mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
364 B
TypeScript
15 lines
364 B
TypeScript
/// <reference path="./query-string.d.ts" />
|
|
|
|
import qs = require('query-string');
|
|
|
|
qs.stringify({ foo: 'bar' });
|
|
qs.stringify({ foo: 'bar', bar: 'baz' });
|
|
qs.stringify({ foo: 'bar' }, {strict: false})
|
|
|
|
qs.parse('?foo=bar');
|
|
qs.parse('#foo=bar');
|
|
qs.parse('&foo=bar&foo=baz');
|
|
|
|
qs.extract('http://foo.bar/?abc=def&hij=klm');
|
|
qs.extract('http://foo.bar/?foo=bar');
|