mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
319 B
TypeScript
14 lines
319 B
TypeScript
|
|
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');
|