Skip to content

Commit 4b104dd

Browse files
committed
feat: add type declarations
1 parent 828e4ca commit 4b104dd

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

lib/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare namespace FastQuerystring {
2+
export function stringify(value: string): Record<string, any>;
3+
export function parse(value: Record<string, any>): string;
4+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "",
55
"main": "lib/index.js",
66
"type": "commonjs",
7+
"types": "./lib/index.d.ts",
78
"scripts": {
89
"format": "rome format . --write",
910
"format:ci": "rome format .",

0 commit comments

Comments
 (0)