Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
1 line
687 B
Plaintext
1 line
687 B
Plaintext
{"version":3,"file":"is-response.js","names":[],"sources":["../../src/utils/is-response.ts"],"sourcesContent":["/**\n * Custom type guard to check if an object is likely a Fetch Response\n */\nexport function isFetchResponse(result: unknown): result is Response {\n\tif (typeof result !== 'object' || !result) return false;\n\n\treturn (\n\t\t'headers' in result &&\n\t\t'ok' in result &&\n\t\t'json' in result &&\n\t\ttypeof result.json === 'function' &&\n\t\t'text' in result &&\n\t\ttypeof result.json === 'function'\n\t);\n}\n"],"mappings":"AAGA,SAAgB,EAAgB,EAAqC,CAGpE,OAFI,OAAO,GAAW,UAAY,CAAC,EAAe,GAGjD,YAAa,GACb,OAAQ,GACR,SAAU,GACV,OAAO,EAAO,MAAS,YACvB,SAAU,GACV,OAAO,EAAO,MAAS"} |