D
Deno
O
Deno
β’
3y ago
β’
6 replies
Octal!
Object to tuple of tuple of keys and type?
Example
:
type SomeType = { owo: string uwu: number }
type SomeType = { owo: string uwu: number }
Into
type SomeType = [ ["owo", string], ["uwu", number] ]
type SomeType = [ ["owo", string], ["uwu", number] ]
Deno
Join
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,950
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
type
SomeType
=
{
owo
:
string
uwu
:
number
}
type
SomeType
=
{
owo
:
string
uwu
:
number
}
type
SomeType
=
[
[
"owo"
,
string
],
[
"uwu"
,
number
]
]
type
SomeType
=
[
[
"owo"
,
string
],
[
"uwu"
,
number
]
]
Similar Threads
How to assert object with a field of a given type?
D
DrPotat / help
3y ago
Interface with unknown amount of keys but all the same type
K
Kay / help
2y ago
RustyV8: Example of creating a TypedArray?
K
Kalleby Santos / help
16mo ago
type error of express
V
vinit_parekh / help
14mo ago