Leah :neocat_blush_hide: :v_trans: on Nostr: Forgot typescript can't save js's half baked type system. They have typeof but if in ...
Forgot typescript can't save js's half baked type system. They have typeof but if in typescript I do `as boolean` it doesn't mean it's gonna be a boolean... That gets compiled out. And in my case ts saw it as a boolean when in reality it was a string
Published at
2024-08-09 22:37:36Event JSON
{
"id": "5b9f48852564f0f54a2ceaf57ba40939cdf07641a7257510e9704d9bac125962",
"pubkey": "abdc03629db49d89c536c89b1b0fa0701a8f32a0ce320c4bd5e9079aedc1257c",
"created_at": 1723243056,
"kind": 1,
"tags": [
[
"proxy",
"https://woem.men/notes/9wquqhf1v81w01fi",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://woem.men/notes/9wquqhf1v81w01fi",
"pink.momostr"
],
[
"-"
]
],
"content": "Forgot typescript can't save js's half baked type system. They have typeof but if in typescript I do `as boolean` it doesn't mean it's gonna be a boolean... That gets compiled out. And in my case ts saw it as a boolean when in reality it was a string",
"sig": "1e70ab4c331a690187062787cb07b0242221fc61960d9c71bd98e62ba92d3d1441c04e85933486a122c0a32db7731f220fe86ee5520e549dd563710380cd1595"
}