@mojir/lits
Version:
Lits is a pure functional programming language implemented in TypeScript
16 lines (15 loc) • 665 B
TypeScript
/**
* A bundle produced by the bundler. Contains the main program source
* with file imports rewritten to canonical module names, plus an ordered
* array of file module sources keyed by canonical name.
*
* The bundle is pure JSON — fully serializable and portable
* (e.g., build on a server, run in a browser).
*/
export interface LitsBundle {
/** The main program source, with file imports rewritten to bare symbols. */
program: string;
/** Ordered array of [canonicalName, source] pairs. Dependencies come before dependents. */
fileModules: [string, string][];
}
export declare function isLitsBundle(value: unknown): value is LitsBundle;