Documentation
Github
Preparing search index...
iso-ucan
capability
<internal>
PathsToStringProps
Type Alias PathsToStringProps<T>
PathsToStringProps
:
T
extends
string
|
number
|
boolean
|
null
|
undefined
?
never
:
T
extends
(
infer
U
)
[]
?
|
"[]"
|
`
[
${
number
}
]
`
|
`
[
${
number
}
:
${
number
}
]
`
|
`
[
${
number
}
:]
`
|
`
[:
${
number
}
]
`
|
"[:]"
|
PathsToStringProps
<
U
>
:
T
extends
object
?
{
[
K
in
keyof
T
&
(
string
|
number
)
]
:
K
extends
string
?
`
.
${
K
}
`
|
`
.
${
K
}
?
`
|
`
.
${
K
}
${
PathsToStringProps
<
T
[
K
]
>
}
`
:
`
[
${
K
}
]
`
|
`
[
${
K
}
]?
`
|
`
[
${
K
}
]
${
PathsToStringProps
<
T
[
K
]
>
}
`
}
[
keyof
T
&
(
string
|
number
)
]
:
never
Extracts all possible paths from a data structure as string literals
Type Parameters
T
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Github
Documentation
Loading...
Extracts all possible paths from a data structure as string literals