Event JSON
{
"id": "8d03c300ff6e3ed8f5a358f577cecb9efec1a9c057d32fc2d5da3c1906b326bc",
"pubkey": "ceee9d7e6705946321b940eb4ec4db738c18362d2ac26d89c9eaaf9269c7fe0b",
"created_at": 1718874524,
"kind": 1,
"tags": [
[
"p",
"692d9d8fb6c5db3d114c21513be89063e8ee0d14f89d35103c8f1b7d40a116a7"
],
[
"e",
"9ef941bdeb7154ba9c9e191c9be759f2c20d9e833738f2e99d38704d3e4f3b9a",
"",
"root"
],
[
"proxy",
"https://mastodon.social/@callionica/112648160817125360",
"web"
],
[
"p",
"ceee9d7e6705946321b940eb4ec4db738c18362d2ac26d89c9eaaf9269c7fe0b"
],
[
"e",
"d89db1a917197b1fb5652e2d0271eb6d8feb8071376afa0b0fa28ce0f1736785",
"",
"reply"
],
[
"proxy",
"https://mastodon.social/users/callionica/statuses/112648160817125360",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/callionica/statuses/112648160817125360",
"pink.momostr"
]
],
"content": "You can treat `any` as `T` implicitly. You can’t treat `unknown[]` as `T` implicitly. That’s why you need the `as any`. \n\nYou could move the `any` into your Map. Otherwise you could tell the compiler that the data you are retrieving from the map is expected to be a T by making your function generic on T and using `as T` instead of `as any`. \n\nUltimately if you store heterogenous data in the map but don’t use `any` there, you’ll need an explicit cast to get back a specific type.",
"sig": "5d00b70f0d7364f0c07a6050c98c04c40fabcbe84a8cfd0be6165c60bad81550a909fd295de695b30eed42186efb7df3cdaa5d128b8dbde8ea1086746e87fa58"
}