MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / Subscriber

Interface Subscriber

Extension/src/Utility/Eventing/interfaces.ts:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36export type Filter = ($data: ArbitraryObject, $strings: string[], $captures: string[]) => boolean;
37
38export interface Subscriber {
39 /** the filter checks generated from the event registration */
40 filters: Map<string, Filter | true>;
41
42 /** the source (aka 'this') value that must match if the handler is tied to an object */
43 eventSource?: WeakRef<ArbitraryObject>;
44
45 /** the event handler function itself */
46 handler: Callback<any>;
47}

Callers 1

appendAtLevelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected