UNPKG

piral-base

Version:

The base library for creating a Piral instance.

10 lines (9 loc) 381 B
import type { EventEmitter } from './types'; export type EventListeners = Array<[any, any]>; /** * Creates a new Piral app shell event emitter. * Uses a custom event dispatcher with a state for usage control. * @param state The optional state object to identify the instance. * @returns The event emitter. */ export declare function createListener(state?: any): EventEmitter;