Modrinth API Types - v1.1.0
NPM
GitHub
Discord
Sponsor
Preparing search index...
RequireAtLeastOne
Type Alias RequireAtLeastOne<T>
RequireAtLeastOne
:
{
[
K
in
keyof
T
]
-?:
Required
<
Pick
<
T
,
K
>
>
&
Partial
<
Pick
<
T
,
Exclude
<
keyof
T
,
K
>
>
,
>
}
[
keyof
T
]
Creates a type from an object that requires at least 1 key to be present.
Type Parameters
T
The type object.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
NPM
GitHub
Discord
Sponsor
Modrinth API Types - v1.1.0
Loading...
Creates a type from an object that requires at least 1 key to be present.