File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66benchmark
77.idea
88.github
9+ rome.json
10+ LICENSE
Original file line number Diff line number Diff line change 11declare namespace FastQuerystring {
2- export function stringify ( value : string ) : Record < string , any > ;
3- export function parse ( value : Record < string , any > ) : string ;
2+ export function stringify ( value : Record < string , any > ) : string ;
3+ export function parse ( value : string ) : Record < string , any > ;
44}
5+
6+ export default FastQuerystring ;
Original file line number Diff line number Diff line change 33const parse = require ( "./parse" ) ;
44const stringify = require ( "./stringify" ) ;
55
6- module . exports = {
6+ const fastQuerystring = {
77 parse,
88 stringify,
99} ;
10+
11+ /**
12+ * Enable TS and JS support
13+ *
14+ * - `const qs = require('fast-querystring')`
15+ * - `import qs from 'fast-querystring'`
16+ */
17+ module . exports = fastQuerystring ;
18+ module . exports . default = fastQuerystring ;
Original file line number Diff line number Diff line change 44 "description" : " " ,
55 "main" : " lib/index.js" ,
66 "type" : " commonjs" ,
7- "types" : " ./ lib/index.d.ts" ,
7+ "types" : " lib/index.d.ts" ,
88 "scripts" : {
99 "format" : " rome format . --write" ,
1010 "format:ci" : " rome format ." ,
You can’t perform that action at this time.
0 commit comments