the-forest/client/node_modules/.cache/babel-loader/c6647360de2777793d0084f8da22e151d0cfead319b6e7c55a7112dc2556b553.json

1 line
1.1 KiB
JSON
Raw Normal View History

2024-09-17 20:35:18 -04:00
{"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":[]}