import IEvent from './event'; export function createEvent(c: new (...params) => T, ...params: any[]): T { return new c(...params); }