functionalscript
Version:
FunctionalScript is a purely functional subset of JavaScript
11 lines (10 loc) • 472 B
TypeScript
import type * as djs from '../module.f.ts';
export type AstModule = [readonly string[], AstBody];
export type AstConst = djs.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: djs.Array) => djs.Unknown;