Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
9 lines
290 B
Plaintext
9 lines
290 B
Plaintext
type Subscription<T> = (val: T) => void;
|
|
export declare class EventEmitter<T> {
|
|
private subscriptions;
|
|
emit: (val: T) => void;
|
|
useSubscription: (callback: Subscription<T>) => void;
|
|
}
|
|
declare function useEventEmitter<T = void>(): EventEmitter<T>;
|
|
export default useEventEmitter;
|