派发事件 Event 构造函数变了 应该怎么改

3.2 构造函数 name是string
constructor(name: string, bubbles?: boolean, detail?: any) {
super(name, bubbles);
this.detail = detail;
}
3.3 构造函数 name是SystemEventTypeUnion
升级后报错,应该怎么修改