File size: 412 Bytes
369fac9 |
1 2 3 4 5 6 7 8 9 10 |
import { DomEventNameWithModifier, KeyName, keyCodesByKeyName } from './constants/dom-events';
interface TriggerOptions {
code?: String;
key?: String;
keyCode?: Number;
[custom: string]: any;
}
declare function createDOMEvent(eventString: DomEventNameWithModifier | string, options?: TriggerOptions): Event & TriggerOptions;
export { TriggerOptions, createDOMEvent, keyCodesByKeyName, KeyName };
|