版博士V2.0程序
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.

CustomEvent.d.ts 680 B

12345678910111213141516171819202122232425
  1. import Event from '../Event';
  2. import ICustomEventInit from './ICustomEventInit';
  3. /**
  4. *
  5. */
  6. export default class CustomEvent extends Event {
  7. detail: object;
  8. /**
  9. * Constructor.
  10. *
  11. * @param type Event type.
  12. * @param [eventInit] Event init.
  13. */
  14. constructor(type: string, eventInit?: ICustomEventInit);
  15. /**
  16. * Init event.
  17. *
  18. * @deprecated
  19. * @param type Type.
  20. * @param [bubbles=false] "true" if it bubbles.
  21. * @param [cancelable=false] "true" if it cancelable.
  22. * @param [detail=null] Custom event detail.
  23. */
  24. initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: object): void;
  25. }