@metamask/ocap-kernel
Version:
OCap kernel core components
1 lines • 549 B
Source Map (JSON)
{"version":3,"file":"promise-ref.cjs","sourceRoot":"","sources":["../../../src/store/utils/promise-ref.ts"],"names":[],"mappings":";;AASA,oCAEC;AATD;;;;;;GAMG;AACH,SAAgB,YAAY,CAAC,IAAU;IACrC,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;AACzB,CAAC","sourcesContent":["import type { KRef } from '../../types.ts';\n\n/**\n * Test if a KRef designates a promise.\n *\n * @param kref - The KRef to test.\n *\n * @returns true iff the given KRef references a promise.\n */\nexport function isPromiseRef(kref: KRef): boolean {\n return kref[1] === 'p';\n}\n"]}