@benev/nubs
Version:
user-input system for web games
12 lines (11 loc) • 595 B
TypeScript
import { NubDetail } from "./types/detail.js";
import { MagicEventBase } from "@chasemoskal/magical";
type Any = NubDetail.Any;
export declare class NubCauseEvent<D extends Any = Any> extends MagicEventBase<D> {
static readonly type = "nub_cause";
static readonly target: (target: EventTarget) => {
dispatch(detail: NubDetail.Any, options?: Partial<import("@chasemoskal/magical").DispatchOptions> | undefined): void;
listen(listener: (event: NubCauseEvent<NubDetail.Any>) => void, options?: boolean | AddEventListenerOptions | undefined): () => void;
};
}
export {};