MCPcopy
hub / github.com/foambubble/foam / map

Method map

packages/foam-core/src/common/event.ts:340–340  ·  view source on GitHub ↗
(fn: (i: T) => O)

Source from the content-addressed store, hash-verified

338 export interface IChainableEvent<T> {
339 event: Event<T>;
340 map<O>(fn: (i: T) => O): IChainableEvent<O>;
341 forEach(fn: (i: T) => void): IChainableEvent<T>;
342 filter(fn: (e: T) => boolean): IChainableEvent<T>;
343 filter<R>(fn: (e: T | R) => e is R): IChainableEvent<R>;

Callers 15

telemetry.test.tsFile · 0.65
serializePlaceholderItemFunction · 0.65
serializeTraversalResultFunction · 0.65
server.test.tsFile · 0.65
registerTagToolsFunction · 0.65
registerGraphToolsFunction · 0.65
tags.test.tsFile · 0.65
search.test.tsFile · 0.65
structure.test.tsFile · 0.65
registerSearchToolsFunction · 0.65
graph.test.tsFile · 0.65
queries.test.tsFile · 0.65

Implementers 1

ChainableEventpackages/foam-core/src/common/event.ts

Calls

no outgoing calls

Tested by 2

stubStorageFunction · 0.52
thTextFunction · 0.52