UNPKG

functionalscript

Version:

FunctionalScript is a purely functional subset of JavaScript

10 lines (9 loc) 431 B
import type { Io } from '../io/module.f.ts'; import type { Primitive as JsonPrimitive } from '../json/module.f.ts'; export type Object = { readonly [k in string]: Unknown; }; export type Array = readonly Unknown[]; export type Primitive = JsonPrimitive | bigint | undefined; export type Unknown = Primitive | Object | Array; export declare const compile: ({ console: { error }, fs, process: { argv } }: Io) => Promise<number>;