Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

BaseStore

import { BaseStore } from "https://raw.githubusercontent.com/takker99/scrapbox-userscript-std/0.24.3/deps/scrapbox.ts";
class BaseStore<Event = string> {
constructor();
private _onChangeListeners: BaseStoreListener<Event, this>[];
public get listenersCount(): number;
 
public addChangeListener(listener: BaseStoreListener<Event, this>): void;
public emitChange(event: Event): void;
public removeChangeListener(listener: BaseStoreListener<Event, this>): void;
}

§Type Parameters

§
Event = string
[src]

§Constructors

§
new BaseStore()
[src]

§Properties

§
_onChangeListeners: BaseStoreListener<Event, this>[]
[src]
§
listenersCount: number readonly
[src]

§Methods

§
addChangeListener(listener: BaseStoreListener<Event, this>): void
[src]
§
emitChange(event: Event): void
[src]
§
removeChangeListener(listener: BaseStoreListener<Event, this>): void
[src]