/** * 获取数组的元素类型 * @example * 输入: * type example = GetArrayValue * 输出: * type example = string */ export type GetArrayValue> = T extends Array ? P : never;