Skip to content

Commit b424bfb

Browse files
committed
Add FetchContext type
1 parent c273cb8 commit b424bfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ export default class Fetch<TData = any> extends React.Component<
5454
// Passing any to FetchResult as unable to use TData
5555
static Consumer: React.Consumer<FetchResult<any>>;
5656
}
57+
58+
export const FetchContext: React.Context<FetchResult<TData>>;

0 commit comments

Comments
 (0)