Search
Setup for Free
a
arktype
•
8h ago
Gabriel Silva
template literals kinda?
is there any way i can achieve this in arktype
?
interface t { Color: "red" | "blue"; DarkColor: `${t["Color"]}Dark`; }
interface t { Color: "red" | "blue"; DarkColor: `${t["Color"]}Dark`; }
arktype
Join
This is a friendly space centered around ArkType, TypeScript's 1:1 validator (https://github.com/arktypeio/arktype)
857
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
interface
t
{
Color
:
"red"
|
"blue"
;
DarkColor
:
`${
t
[
"Color"
]
}Dark`
;
}
interface
t
{
Color
:
"red"
|
"blue"
;
DarkColor
:
`${
t
[
"Color"
]
}Dark`
;
}
No replies yet
Be the first to reply to this message
Join
Similar Threads
Can you create types with dynamic literals?
a
arktype / questions
2y ago
how to do an union of dynamic literals ?
a
arktype / questions
10mo ago
Modeling string template type
a
arktype / questions
8mo ago
Is there a good way to use an array of fields mapped from an object into array as string literals?
a
arktype / questions
10mo ago