npm.io
0.2.2 • Published 2 years ago

@types/simulant

Licence
MIT
Version
0.2.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Elizabeth Craig.