Skip to content

Commit e2816c5

Browse files
fix: paginated typing (#886)
1 parent 1abc928 commit e2816c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/use-dataloader/src/usePaginatedDataLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import useDataLoader from './useDataLoader'
1414
* @param {useDataLoaderConfig} config hook configuration
1515
* @returns {useDataLoaderResult} hook result containing data, request state, and method to reload the data
1616
*/
17-
const usePaginatedDataLoader = <ResultType, ErrorType>(
17+
const usePaginatedDataLoader = <ResultType = unknown, ErrorType = Error>(
1818
baseFetchKey: string,
1919
method: (
2020
params: UsePaginatedDataLoaderMethodParams,

0 commit comments

Comments
 (0)