UNPKG

@three3d/tools

Version:

@three3d/tools 提供了 ThreeJS 常用的工具库

16 lines (10 loc) 628 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [VectorMembersToIVectors](./tools.vectormemberstoivectors.md) ## VectorMembersToIVectors type 将对象所有属性为 Vector 类型的值转为 IVector 类型的值 将对象所有属性为 Vector\[\] 类型的值转为 IVector\[\] 类型的值 **Signature:** ```typescript export type VectorMembersToIVectors<T> = { [P in keyof T]: ArrayItemType<T[P]> extends never ? FormatVectorMemberToIVector<T[P]> : FormatVectorMemberToIVector<ArrayItemType<T[P]>>[]; }; ```