UNPKG

@terminus/ngx-tools

Version:

[![CircleCI][circle-badge]][circle-link] [![codecov][codecov-badge]][codecov-project] [![semantic-release][semantic-release-badge]][semantic-release] [![MIT License][license-image]][license-url] <br> [![NPM version][npm-version-image]][npm-url] [![Github

14 lines (13 loc) 402 B
/** * Creates a fake event object with any desired event type. * * @param type - The event type * @param canBubble - Define if the event can bubble up the DOM * @param cancelable * @returns The event * * @example * createFakeEvent('focus'); * createFakeEvent('focus', false, false); */ export declare function createFakeEvent(type: string, canBubble?: boolean, cancelable?: boolean): Event;