Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a9128dc

Browse files
jeremychonebendrucker
authored andcommitted
Add TypeScript typings (#5)
1 parent f683e48 commit a9128dc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
export function parse(source: string): string[];
3+
export function parse<T>(source: string, transform: (value: string) => T): T[];
4+

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"scripts": {
1717
"test": "standard && tape test.js"
1818
},
19+
"types": "index.d.ts",
1920
"keywords": [
2021
"postgres",
2122
"array",
@@ -29,6 +30,7 @@
2930
},
3031
"files": [
3132
"index.js",
33+
"index.d.ts",
3234
"readme.md"
3335
]
3436
}

0 commit comments

Comments
 (0)