关于类的自定义数组申明的问题

我想自定义一个数组声明 ,每个数组有两个参数(和cc.Vec2)类似的,
但是通过以下方式无法实现,请问应该怎么写才对? 谢谢!

cc.Class({
    extends: cc.Component,
    properties: {
        names: {
            default: [],
            type: [cc.String, cc.String],
            displayName: ['first', 'last']
        }
      },
}
var StringPair = cc.Class({
    name: "string pair"
    properties: {
        first: "",
        last: ""
    }
};

cc.Class({
    extends: cc.Component,
    properties: {
        names: {
            default: [],
            type: StringPair
        }
      },
});

请问有ts格式的例子吗?

自己搞掂了,留个记录

var Loc = cc.Class({
    name: 'LOC',
    properties: {
        row: 0,
        col: 0
    }
})


@ccclass
export default class PfEditDoorInfo extends cc.Component {
    @property({ type: Loc})
    loc = [];
}