Skip to content

Commit c5f0a05

Browse files
committed
Add indexer for additional props to AsyncOptions type.
1 parent 5a3957d commit c5f0a05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ interface AsyncOptions<T> {
1212
initialValue?: T
1313
onResolve?: (data: T) => void
1414
onReject?: (error: Error) => void
15+
[prop: string]: any
1516
}
1617

1718
interface AsyncProps<T> extends AsyncOptions<T> {

0 commit comments

Comments
 (0)