1 line
1.1 KiB
JSON
1 line
1.1 KiB
JSON
|
{"ast":null,"code":"// src/utils.ts\nfunction shouldThrowError(throwError, params) {\n if (typeof throwError === \"function\") {\n return throwError(...params);\n }\n return !!throwError;\n}\nfunction noop() {}\nexport { noop, shouldThrowError };","map":{"version":3,"names":["shouldThrowError","throwError","params","noop"],"sources":["/Users/shoofle/Projects/the-forest/node_modules/@tanstack/react-query/src/utils.ts"],"sourcesContent":["export function shouldThrowError<T extends (...args: Array<any>) => boolean>(\n throwError: boolean | T | undefined,\n params: Parameters<T>,\n): boolean {\n // Allow throwError function to override throwing behavior on a per-error basis\n if (typeof throwError === 'function') {\n return throwError(...params)\n }\n\n return !!throwError\n}\n\nexport function noop() {}\n"],"mappings":";AAAO,SAASA,iBACdC,UAAA,EACAC,MAAA,EACS;EAET,IAAI,OAAOD,UAAA,KAAe,YAAY;IACpC,OAAOA,UAAA,CAAW,GAAGC,MAAM;EAC7B;EAEA,OAAO,CAAC,CAACD,UAAA;AACX;AAEO,SAASE,KAAA,EAAO,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|