UNPKG

@mojir/lits

Version:

Lits is a pure functional programming language implemented in TypeScript

13 lines (12 loc) 660 B
import type { Any, Arr } from '../interface'; import type { LitsFunctionType } from '../parser/types'; import type { SourceCodeInfo } from '../tokenizer/token'; import type { MaybePromise } from '../utils/maybePromise'; import type { ContextStack } from './ContextStack'; import type { EvaluateNode, ExecuteFunction } from './interface'; type FunctionExecutors = Record<LitsFunctionType, (fn: any, params: Arr, sourceCodeInfo: SourceCodeInfo | undefined, contextStack: ContextStack, helpers: { evaluateNode: EvaluateNode; executeFunction: ExecuteFunction; }) => MaybePromise<Any>>; export declare const functionExecutors: FunctionExecutors; export {};