Library API
⬅ Back to Guides
Preparing search index...
common.index
LiteralKey
Type Alias LiteralKey<T>
LiteralKey
:
{
[
K
in
keyof
T
]
:
string
extends
K
?
never
:
K
}
[
keyof
T
]
&
string
extracts only the Literal string keys (not index signatures) from an object/interface
Type Parameters
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
⬅ Back to Guides
Library API
Loading...
extracts only the Literal string keys (not index signatures) from an object/interface