【2024年最新版】ぁぅゃ on Nostr: これを満たす変な型について考えてるけど、何もわかんない ...
これを満たす変な型について考えてるけど、何もわかんない
type Original = {
a: number
nested: {
b: string
}
}
const result: WhatINeed = {
a_post1: 1234
a_post2: 5678
nested: {
b_post1: "abc"
b_post2: "def"
}
}
Published at
2024-03-23 03:49:30Event JSON
{
"id": "9f989200943c43c63ed6065d4fdd8f4eda27ef2ecbfc3b011a4ca24f06bd96f9",
"pubkey": "f1e7278e9f1b7d6b96ddbddae3a82574b3546e5654ff088fcbe9a1e8946244b0",
"created_at": 1711165770,
"kind": 1,
"tags": [
[
"proxy",
"https://misskey.io/notes/9r748cbin3c20ca5",
"activitypub"
]
],
"content": "これを満たす変な型について考えてるけど、何もわかんない\n\n\n\ntype Original = {\n a: number\n nested: {\n b: string\n }\n}\n\nconst result: WhatINeed = {\n a_post1: 1234\n a_post2: 5678\n nested: {\n b_post1: \"abc\"\n b_post2: \"def\"\n }\n}",
"sig": "c4a15d6dcd8d937b2b460b86464c353b5388867612f41d0ea046812de7c78c95672c98379c871d03ac8cb791e93baf99339d3cc3562f1df655bf219313f28c8f"
}