jp30566347 on Nostr: Type-safe dictionaries are a pain in TS. Ended-up using Record but damn this is ...
Type-safe dictionaries are a pain in TS.
Ended-up using Record but damn this is inelegant.
Every time I’m trying to leverage the type system I want to go back to JS.
Published at
2024-05-23 17:06:34Event JSON
{
"id": "39db4169842d20f7f5ae7074b87cfdb580a6fc4d5ed9b575115fda345fa55fa6",
"pubkey": "af9fa70cd13b02b3712106aa271cb42c7075d7c489de5da353093e759745ef73",
"created_at": 1716476794,
"kind": 1,
"tags": [],
"content": "Type-safe dictionaries are a pain in TS.\n\nEnded-up using Record but damn this is inelegant.\n\nEvery time I’m trying to leverage the type system I want to go back to JS.",
"sig": "b3483fb8382a375d10f407a83b603416ecaaf4a78e9c31ee0803ccc6f171fdf33db3e9f5d090a8ad363002214d1fd30034c7a3d8b133c654ddbce3fb1d1a3797"
}