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

0.2.2 • Public • Published

Installation

npm install --save @types/simulant

Summary

This package contains type definitions for simulant (https://github.com/Rich-Harris/simulant#readme).

Details

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

index.d.ts

declare namespace event {
    function fire(el: Node, e: Event): void;
    function fire(el: Node, e: string, payload?: { [key: string]: any }): void;
}

declare function event(eventName: string, payload?: { [key: string]: any }): Event;
declare function event(window: Window, eventName: string, payload?: { [key: string]: any }): Event;

export = event;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Elizabeth Craig.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/simulant

Weekly Downloads

1,633

Version

0.2.2

License

MIT

Unpacked Size

3.26 kB

Total Files

5

Last publish

Collaborators

  • types