mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
The fix has two parts: 1. Add `"types": ["node"]` to tsconfig. 2. Fix an incorrect type cast in `index.ts`. The parsed GitHub API response was being cast to the DOM `Response` type to access its `.body` property, which is wrong — `Response.body` is a `ReadableStream`, not a string. The actual value is the parsed JSON from the GitHub PR API, whose `body` field is `string | null` per the API schema. Updated the cast accordingly. Resolves #9947
17 lines
283 B
JSON
17 lines
283 B
JSON
{
|
|
"compilerOptions": {
|
|
"strict": true,
|
|
"outDir": "dist",
|
|
"lib": [
|
|
"ESNext"
|
|
],
|
|
"types": [
|
|
"node"
|
|
],
|
|
"module": "CommonJS",
|
|
"moduleResolution": "node",
|
|
"esModuleInterop": true,
|
|
"resolveJsonModule": true,
|
|
"target": "es2020"
|
|
}
|
|
} |