Event JSON
{
"id": "16f4e403b0bc934bc2dc734e92ff36b503a4fba1dabc2fd41c58892f8e6307ad",
"pubkey": "5bdfe5c3188a24f76efd37648930d8ada3e458961d03b2e0d62596d4f76e4778",
"created_at": 1710886124,
"kind": 1,
"tags": [
[
"p",
"18334f1d5f953482cda4352a035da39494fcdffcf289528694119086c1b16060",
"wss://relay.mostr.pub"
],
[
"p",
"bedfd50ed145c0ac8a67b1b922770c0fced32312e34ddc15c4693b709dc0c4df",
"wss://relay.mostr.pub"
],
[
"e",
"846ef9f5bef17275f7181db40c31d1e44f448adc035f7358f20f6dd214e22caf",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fosstodon.org/users/dpom/statuses/112124633054764702",
"activitypub"
]
],
"content": "nostr:npub1rqe5782lj56g9ndyx54qxhdrjj20ehlu72y49p55zxggdsd3vpsq5cufvh Ah, this works! I was using `indexOf(document.activeElement)` to index into an array of HTMLElement, and suppressing the resulting error by typing the array as `Array\u003cElement\u003e`, but that resulted in a lot of casting back to `HTMLElement` later. Casting in the other direction is better, but honestly I don’t see why the compiler would allow it? If it’s possible for the returned item not to be an `HTMLElement`, how can tsc permit the cast?",
"sig": "16d6e39d98c8b66e6e67b58787c74b48350390b4708e5200f50c28a602f81f6953590836a8e9f102da39198f2b54e11bc23eee1ee1708f3ccb1e5c7fc467a45f"
}