Documentation
Preparing search index...
@adonisjs/data
src/types
UnpackOptionalValues
Type Alias UnpackOptionalValues<Data, MaxDepth, Depth>
UnpackOptionalValues
:
{
[
O
in
{
[
K
in
keyof
Data
]
:
[
undefined
]
extends
[
Data
[
K
]
]
?
LimitDepth
<
K
,
Data
[
K
]
,
MaxDepth
,
Depth
>
:
never
}
[
keyof
Data
]
]
?:
UnpackKeyValue
<
Data
[
O
]
,
MaxDepth
,
Depth
>
}
Only unpacks values that can be undefined and mark them as optional.
Type Parameters
Data
MaxDepth
extends
number
Depth
extends
number
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
Loading...
Only unpacks values that can be undefined and mark them as optional.