ts-fortress
Preparing search index...
record/omit
omit
Function omit
omit
<
const
R
extends
UnknownRecord
,
const
KeysToOmit
extends
readonly
(
keyof
R
&
string
)
[]
,
>
(
recordType
:
Type
<
R
>
,
keysToOmit
:
KeysToOmit
,
options
?:
Partial
<
Readonly
<
{
excessProperty
:
ExcessPropertyOption
;
typeName
:
string
}
>
,
>
,
)
:
OmittedType
<
R
,
KeysToOmit
>
Creates a record type with keys omitted.
Type Parameters
const
R
extends
UnknownRecord
const
KeysToOmit
extends
readonly
(
keyof
R
&
string
)
[]
Parameters
recordType
:
Type
<
R
>
keysToOmit
:
KeysToOmit
Optional
options
:
Partial
<
Readonly
<
{
excessProperty
:
ExcessPropertyOption
;
typeName
:
string
}
>
>
Returns
OmittedType
<
R
,
KeysToOmit
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
ts-fortress
Loading...
Creates a record type with keys omitted.