primea-annotations
v0.0.10
Published
parsing/encoding for primea's type annotations
Downloads
16
Readme
SYNOPSIS
INSTALL
npm install primea-annotations
USAGE
const primeaAnnotations = require('primea-annotations')
const annotation = {
'types': [{
'form': 'func',
'params': [
'func'
]
}],
'typeMap': [{
'func': 0,
'type': 0
}],
'persist': [{
'form': 'global'
'index': 0,
'type': 'data'
}]
}
const injectWasmBinary = primeaAnnotations.encodeAndInject(annotation, wasmBinary)