@types/eventbusjs
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Installation

npm install --save @types/eventbusjs

Summary

This package contains type definitions for eventbusjs (https://github.com/krasimir/EventBus).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eventbusjs.

// Type definitions for eventbusjs 0.2.0
// Project: https://github.com/krasimir/EventBus

export type EventListener = (...args: any) => any;

export function addEventListener(type: string, listener?: EventListener, scope?: object): void;

export function removeEventListener(type: string, listener?: EventListener, scope?: object): void;

export function hasEventListener(type: string, listener?: EventListener, scope?: object): boolean;

export function dispatch(type: string, target?: object, arg?: string, arg2?: string): void;

export function getEvents(): string;

export as namespace EventBus;

Additional Details

  • Last updated: Fri, 22 Mar 2024 01:27:05 GMT
  • Dependencies: none

Credits

These definitions were written by long2014.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/eventbusjs

Weekly Downloads

90

Version

0.2.0

License

MIT

Unpacked Size

3.75 kB

Total Files

5

Last publish

Collaborators

  • types