Axel Rauschmayer on Nostr: Does anyone know why #TypeScript uses square brackets notation (number[]) when ...
Does anyone know why #TypeScript uses square brackets notation (number[]) when displaying types and not angle brackets notation (Array<number>)?
Published at
2025-02-10 15:59:26 UTCEvent JSON
{
"id": "cb4cdbe772ebba3b850f641309c83f46a20ed2b3c11a08becb69d18ed9fa2af7",
"pubkey": "7a7a0978cc46ef7fd548fb125e51c04de7d4ca639417a21b56aa95e3711c0b38",
"created_at": 1739203166,
"kind": 1,
"tags": [
[
"t",
"typescript"
],
[
"proxy",
"https://fosstodon.org/@rauschma/113980418688181730",
"web"
],
[
"proxy",
"https://fosstodon.org/users/rauschma/statuses/113980418688181730",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/rauschma/statuses/113980418688181730",
"pink.momostr"
],
[
"-"
]
],
"content": "Does anyone know why #TypeScript uses square brackets notation (number[]) when displaying types and not angle brackets notation (Array\u003cnumber\u003e)?",
"sig": "f3684ae4ca9791436c5570e8bd32b49b41427d9d2bb8ebb844a565e266696bc5d4ffdf3ce24f4e20cc699b54ce34ed0868acb45136bfc6cadfa4dd132ecc6d7f"
}