What is Nostr?
Nican /
npub1xa4…slar
2023-10-28 20:48:44

Nican on Nostr: Joys of TypeScript refactoring: I removed `orders` from `A`, thinking it was no ...

Joys of TypeScript refactoring:

I removed `orders` from `A`, thinking it was no longer necessary.

But TypeScript found that type `B` is still compatible, since `orders` is optional.

So the compiler did not give any errors about it being missing.

Author Public Key
npub1xa4rsexhlh332u4sea85rcyezln6v3c3gksdf597mkn6w6a74e2qrzslar