use-app-events
Version:
Create custom events and reactive variables in vanilla JavaScript and React.
11 lines (10 loc) • 423 B
TypeScript
type Options = {
/** When false, `notifyEventListeners` will not broadcast events to other browsing contexts (tabs, windows) by default. */
broadcast: boolean;
/** When true, enables a debug mode, resulting in additional logs in non-production environment. */
debug: boolean;
/** Reset options to their initial state. */
reset: () => void;
};
declare const options: Options;
export default options;