MCPcopy Create free account
hub / github.com/callstackincubator/polygen / isMemoryDescriptor

Function isMemoryDescriptor

packages/polygen/src/api/Memory.ts:26–28  ·  view source on GitHub ↗

* Helper function checking if specified object is a memory descriptor. * * @param descriptor Object to check

(descriptor: any)

Source from the content-addressed store, hash-verified

24 * @param descriptor Object to check
25 */
26function isMemoryDescriptor(descriptor: any): descriptor is MemoryDescriptor {
27 return 'initial' in descriptor;
28}
29
30/**
31 * @spec https://webassembly.github.io/spec/js-api/index.html#memories

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected