fix refine fn typing

This commit is contained in:
dswbx
2025-03-05 08:35:57 +01:00
parent 58f9ea4cd7
commit 7e61ff9995
2 changed files with 3 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
"type": "module", "type": "module",
"sideEffects": false, "sideEffects": false,
"bin": "./dist/cli/index.js", "bin": "./dist/cli/index.js",
"version": "0.9.0-rc.3", "version": "0.9.0-rc.4",
"description": "Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, Remix, Astro, Cloudflare, Bun, Node, AWS Lambda & more.", "description": "Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, Remix, Astro, Cloudflare, Bun, Node, AWS Lambda & more.",
"homepage": "https://bknd.io", "homepage": "https://bknd.io",
"repository": { "repository": {

View File

@@ -225,7 +225,8 @@ export class FetchPromise<T = ApiResponse<any>> implements Promise<T> {
fetcher?: typeof fetch; fetcher?: typeof fetch;
verbose?: boolean; 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() { get verbose() {