mary🐇 on Nostr: is there a typescript lint rule where if you use let to instantiate and destroy ...
is there a typescript lint rule where if you use let to instantiate and destroy something within a lifecycle, it warns you to add undefined as a union?
"let is missing an undefined union type" or whatevs
Published at
2024-07-09 22:42:04Event JSON
{
"id": "80d2e6ed76ae178f3add9068ade0024930ac44d2ff463585405ca003773a5ff0",
"pubkey": "317671b298db567a07bb8e36f88aa49a7b1139d90c39b8a821d53c060d889d7a",
"created_at": 1720564924,
"kind": 1,
"tags": [
[
"proxy",
"https://fed.brid.gy/r/https://bsky.app/profile/did:plc:ia76kvnndjutgedggx2ibrem/post/3kwv2ymed7kzo",
"web"
],
[
"proxy",
"https://bsky.brid.gy/convert/ap/at://did:plc:ia76kvnndjutgedggx2ibrem/app.bsky.feed.post/3kwv2ymed7kzo",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://bsky.brid.gy/convert/ap/at://did:plc:ia76kvnndjutgedggx2ibrem/app.bsky.feed.post/3kwv2ymed7kzo",
"pink.momostr"
],
[
"expiration",
"1723156927"
]
],
"content": "is there a typescript lint rule where if you use let to instantiate and destroy something within a lifecycle, it warns you to add undefined as a union?\n\n\"let is missing an undefined union type\" or whatevs",
"sig": "3d225d8731717ec5834338257500027ae4d909e97f2d4dda5e1a59452b1820b7b2640d0a8ed0646df97033d6f5072dc5aa061a9a0eb241cea872cd3fa7eedc69"
}