UNPKG

functionalscript

Version:

FunctionalScript is a purely functional subset of JavaScript

11 lines (10 loc) 481 B
import type { Primitive, Array, Unknown } from '../module.f.ts'; export type AstModule = [readonly string[], AstBody]; export type AstConst = Primitive | AstModuleRef | AstArray | AstObject; export type AstModuleRef = ['aref' | 'cref', number]; export type AstArray = ['array', readonly AstConst[]]; export type AstObject = { readonly [k in string]: AstConst; }; export type AstBody = readonly AstConst[]; export declare const run: (body: AstBody) => (args: Array) => Unknown;