@pengzhanbo/utils - v3.5.0
GitHub
NPM
NPMX.DEV
JSR
@pengzhanbo
Preparing search index...
LastOfUnion
Type Alias LastOfUnion<T>
LastOfUnion
:
UnionToIntersection
<
T
extends
any
?
()
=>
T
:
never
>
extends
()
=>
infer
R
?
R
:
never
Returns the last element of a union type.
返回联合类型的最后一个元素。
Type Parameters
T
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
GitHub
NPM
NPMX.DEV
JSR
@pengzhanbo
@pengzhanbo/utils - v3.5.0
Loading...
Returns the last element of a union type.
返回联合类型的最后一个元素。