UNPKG

functionalscript

Version:

FunctionalScript is a purely functional subset of JavaScript

17 lines (16 loc) 653 B
import { type Unknown } from '../module.f.ts'; import { type Result } from '../../types/result/module.f.ts'; import { type List } from '../../types/list/module.f.ts'; import { type OrderedMap } from '../../types/ordered_map/module.f.ts'; import type { Fs } from '../../io/module.f.ts'; import { type ParseError } from '../parser/module.f.ts'; export type ParseContext = { readonly fs: Fs; readonly complete: OrderedMap<djsResult>; readonly stack: List<string>; readonly error: ParseError | null; }; export type djsResult = { djs: Unknown; }; export declare const transpile: (fs: Fs) => (path: string) => Result<Unknown, ParseError>;