MCPcopy
hub / github.com/dvanoni/notero / Notifier

Interface Notifier

types/zotero.d.ts:217–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 }
216
217 interface Notifier {
218 /**
219 * @param ref
220 * @param types a list of types of events observer should be triggered on
221 * @param id an id of the observer used in debug output
222 * @param priority lower numbers correspond to higher priority of observer execution
223 * @returns observer id
224 */
225 registerObserver(
226 ref: {
227 notify(
228 event: string,
229 type: Notifier.Type,
230 ids: (number | string)[],
231 extraData: Record<string, unknown>,
232 ): void;
233 },
234 types?: readonly Notifier.Type[],
235 id?: string,
236 priority?: number,
237 ): string;
238
239 /**
240 * @param id observer id
241 */
242 unregisterObserver(id: string): void;
243 }
244
245 namespace Notifier {
246 type Type =

Callers

nothing calls this directly

Implementers 1

EventManagersrc/content/services/event-manager.ts

Calls

no outgoing calls

Tested by

no test coverage detected