We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 135740b commit 5028e85Copy full SHA for 5028e85
index.d.ts
@@ -0,0 +1,3 @@
1
+type AsyncFunction<T> = (...args: any[]) => Promise<T>;
2
+
3
+export default function greenlet<T extends AsyncFunction<U>, U>(fn: T): T;
package.json
@@ -5,6 +5,7 @@
5
"source": "greenlet.js",
6
"main": "dist/greenlet.js",
7
"module": "dist/greenlet.m.js",
8
+ "types": "./index.d.ts",
9
"scripts": {
10
"prepare": "microbundle",
11
"test": "eslint *.js && npm run -s prepare && karmatic"
0 commit comments