oren_z0 on Nostr: It also understands the “default” type when you don’t write a specific type. ...
It also understands the “default” type when you don’t write a specific type. For example:
const x = 5;
is like:
const x: number = 5:
Published at
2023-06-10 00:39:04Event JSON
{
"id": "e4929d9dc2a0cbc5eb41b98c5c1c095058b34697aae18529c67a71646331eaf0",
"pubkey": "3316e2d88ff91e1089c75feedcd8baa2258b45455a3b156af617d7ec79b45fe5",
"created_at": 1686350344,
"kind": 1,
"tags": [
[
"e",
"d208bc0990f668821f327bb92dc988f3a1b02d175d5cb29329f1c722259e5968"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
]
],
"content": "It also understands the “default” type when you don’t write a specific type. For example:\n\nconst x = 5;\n\nis like:\n\nconst x: number = 5:",
"sig": "c5abe093b99cad49cf53539f2911248b13f17f454fc5c5d1e20f63776ae52ed9b4cbcb9f1f4dbb3d090ba8969778d707bdad4259700d3c952c26fb82c5f16f34"
}