MCPcopy Index your code
hub / github.com/markdoc/markdoc / isPromise

Function isPromise

src/utils.ts:22–24  ·  view source on GitHub ↗
(a: any)

Source from the content-addressed store, hash-verified

20}
21
22export function isPromise(a: any): a is Promise<any> {
23 return a && typeof a === 'object' && typeof a.then === 'function';
24}
25
26export function findTagEnd(content: string, start = 0) {
27 let state = STATES.normal;

Callers 3

validatorFunction · 0.90
validateTreeFunction · 0.90
nodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…