interface INestItem { pos: string; type: number; num: string; time: number; delay: number; pattern: string; shape: number, atktiming: string, bullet: string, } export class NestItem { id: number; data: INestItem; constructor(id, data){ this.id = id; this.data = data; } }