PokéRogue
GitHub
Switch to Beta
Preparing search index...
src/@types/type-helpers
RequiredKeys
Type Alias RequiredKeys<T>
RequiredKeys
:
{
[
K
in
keyof
T
]
-?:
object
extends
Pick
<
T
,
K
>
?
never
:
K
}
[
keyof
T
]
Extract the required keys from an object that has optional ones
Type Parameters
T
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
GitHub
Switch to Beta
PokéRogue
Loading...
Extract the required keys from an object that has optional ones