Skip to content

Commit f6a9651

Browse files
committed
Add a return type helper
1 parent 5eed355 commit f6a9651

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ const statFilter = (/* st */) => true
6363
*/
6464
const shaper = ({ filepath/*, root, stat, relname, basename */ }) => filepath
6565

66+
/**
67+
* AFWReturnType will return the return type of AFW for your given shaper.
68+
*
69+
* @template T
70+
* @typedef {T extends AsyncGenerator<infer U, any, any> ? U : never} AFWReturnType
71+
*/
72+
6673
/**
6774
* Options object.
6875
*

0 commit comments

Comments
 (0)