Preparing search index...
The search index is not available
@use-pico
@use-pico
@use-pico/common
InferOf
Type Alias InferOf<TKey, TSchema>
Infer
Of
<
TKey
,
TSchema
>
:
TKey
extends
`
${
infer
T
}
.
${
infer
K
}
`
?
InferOf
<
K
,
TSchema
[
"shape"
]
[
T
]
extends
z.ZodOptional
<
any
>
?
ReturnType
<
TSchema
[
"shape"
]
[
T
]
[
"unwrap"
]
>
:
TSchema
[
"shape"
]
[
T
]
>
:
z.infer
<
TSchema
[
"shape"
]
[
TKey
]
>
Extracts the inferred type of a nested key from a schema.
Type Parameters
TKey
extends
string
TSchema
extends
z.ZodObject
<
any
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
@use-pico
Loading...
Extracts the inferred type of a nested key from a schema.