Mauve 👁💜 on Nostr: Gosh typescript brings me so much needless suffering sometimes. 😅 The real pain is ...
Gosh typescript brings me so much needless suffering sometimes. 😅
The real pain is when it refuses to run when the equivalent in regular JS would work. Like, I promise you the types match up just trust me bro. I think I'd find it less frustrating if it wasn't wrong so often.
```
Type 'ReadableStream<Uint8Array>' is missing the following properties from type 'ReadableStream<any>': values, [Symbol.asyncIterator]
35 const parser = Readable.fromWeb(response.body)
```
Published at
2023-09-07 01:07:00Event JSON
{
"id": "cb070abf214f7d9238ec96ebc3e52d9f223e5a5d56714420b4172781c7f88b54",
"pubkey": "ca6770df24e21d6765c41a491f129fadc55ec34219c9ed90e5b18f7714bb0e70",
"created_at": 1694048820,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.mauve.moe/users/mauve/statuses/111021183486617755",
"activitypub"
]
],
"content": "Gosh typescript brings me so much needless suffering sometimes. 😅\n\nThe real pain is when it refuses to run when the equivalent in regular JS would work. Like, I promise you the types match up just trust me bro. I think I'd find it less frustrating if it wasn't wrong so often.\n\n```\nType 'ReadableStream\u003cUint8Array\u003e' is missing the following properties from type 'ReadableStream\u003cany\u003e': values, [Symbol.asyncIterator]\n\n35 const parser = Readable.fromWeb(response.body)\n\n```",
"sig": "d7a0145f89a14c87e621e974c9e1a7ee53736a3d4a2f424a660a9c397f86dc3eb2b478ee59438d856392355b6a0b0f123d933920de85e2560baec7890861b7ac"
}