mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
fix refine fn typing
This commit is contained in:
@@ -225,7 +225,8 @@ export class FetchPromise<T = ApiResponse<any>> implements Promise<T> {
|
||||
fetcher?: typeof fetch;
|
||||
verbose?: boolean;
|
||||
},
|
||||
protected refineData?: (data: T) => any,
|
||||
// keep "any" here, it gets inferred correctly with the "refine" fn
|
||||
protected refineData?: (data: any) => any,
|
||||
) {}
|
||||
|
||||
get verbose() {
|
||||
|
||||
Reference in New Issue
Block a user