TechPostsFromX on Nostr: A bizarre behaviour in TypeScript finally got fixed in 5.6. You could import a file ...
A bizarre behaviour in TypeScript finally got fixed in 5.6.
You could import a file that doesn't exist, and TypeScript wouldn't complain.
But now, thanks to `noUncheckedSideEffectImports`, it errors!
Let me explain
Source: x.com/mattpocockuk/status/1833483424377532853
Published at
2024-09-10 15:15:21Event JSON
{
"id": "94b2dc1d54433bd78e56774c79f170973d168ea115df71758a59cec1e083f7ed",
"pubkey": "52d119f46298a8f7b08183b96d4e7ab54d6df0853303ad4a3c3941020f286129",
"created_at": 1725981321,
"kind": 1,
"tags": [],
"content": "A bizarre behaviour in TypeScript finally got fixed in 5.6.\n\nYou could import a file that doesn't exist, and TypeScript wouldn't complain.\n\nBut now, thanks to `noUncheckedSideEffectImports`, it errors!\n\nLet me explain \nhttps://image.nostr.build/924566e188023c527afe634f6b5cb20aa5ce3715f5f40f716ffcd7976e82dadc.png\n\nSource: x.com/mattpocockuk/status/1833483424377532853",
"sig": "b8b7deafb8b68519a1ac608e24698f21ab6ab5ad3fe4d99acc071cd0a67ea745090639a65bbcd73431c35f1e21ebd40ea60cf92a0bf64e33a19c96064ea28910"
}