MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / then

Method then

packages/@stdlib/misc/src/resolvable.ts:47–52  ·  view source on GitHub ↗
(
    onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
    onrejected?: ((reason?: any) => TResult2 | PromiseLike<TResult2>) | null,
  )

Source from the content-addressed store, hash-verified

45 });
46
47 then<TResult1 = T, TResult2 = never>(
48 onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
49 onrejected?: ((reason?: any) => TResult2 | PromiseLike<TResult2>) | null,
50 ): Promise<TResult1 | TResult2> {
51 return this._promise.then(onfulfilled, onrejected);
52 }
53 catch<TResult = never>(
54 onrejected?: ((reason?: any) => TResult | PromiseLike<TResult>) | null,
55 ): Promise<T | TResult> {

Callers 11

watchUntilTrueFunction · 0.95
makeLazyPromiseFunction · 0.80
sendMethod · 0.80
getFunction · 0.80
index.tsFile · 0.80
BFunction · 0.80
createWindowFunction · 0.80
electron-main.tsFile · 0.80
render.jsFile · 0.80
handlePasteFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected