Skip to content

Latest commit

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Custom Event Target

Run LinterRun Unit Tests

This package contains a class and types for a CustomEventTarget.

Example

import{CustomEventTarget,typeCustomEventListenerOrCustomEventListenerObject}from'@typescriptplayground/custom-event-target'classMyClass<MyEventsextends'foo'|'bar'|'baz'>extendsCustomEventTarget{overrideaddEventListener(type : MyEvents,listener : CustomEventListenerOrCustomEventListenerObject<MyEvents>|null,options? : boolean|AddEventListenerOptions) : void{}overrideremoveEventListener(type : MyEvents,listener : CustomEventListenerOrCustomEventListenerObject<MyEvents>|null,options? : boolean|EventListenerOptions) : void{}}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages