web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
460 B

  1. interface EventInterface<EventPayload> {
  2. addHandler<T>(handler: EventInterface.HandlerInterface<EventPayload, T>, context?: T): EventInterface<EventPayload>;
  3. removeHandler<T>(handler: EventInterface.HandlerInterface<EventPayload, T>, context?: T): EventInterface<EventPayload>;
  4. }
  5. declare module EventInterface {
  6. interface HandlerInterface<EventPayload, T> {
  7. (payload: EventPayload, context: T): void;
  8. }
  9. }
  10. export default EventInterface;