UNPKG

@three3d/tools

Version:

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

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