UNPKG

typescript-to-lua

Version:

A generic TypeScript to Lua transpiler. Write your code in TypeScript and publish Lua!

8 lines (7 loc) 515 B
import * as ts from "typescript"; import * as lua from "../../LuaAST"; import { FunctionVisitor, TransformationContext } from "../context"; import { Scope, ScopeType } from "../utils/scope"; export declare function transformBlockOrStatement(context: TransformationContext, statement: ts.Statement): lua.Statement[]; export declare function transformScopeBlock(context: TransformationContext, node: ts.Block, scopeType: ScopeType): [lua.Block, Scope]; export declare const transformBlock: FunctionVisitor<ts.Block>;