UNPKG

roblox-ts

Version:

<div align="center"><img width=25% src="https://i.imgur.com/yCjHmng.png"></div> <h1 align="center"><a href="https://roblox-ts.github.io/">roblox-ts</a></h1> <div align="center">A TypeScript-to-Lua Compiler for Roblox</div> <br> <div align="center"> <a hr

9 lines (8 loc) 909 B
import * as ts from "ts-morph"; import { CompilerState } from "../CompilerState"; export declare function shouldCompileAsSpreadableList(elements: Array<ts.Expression>): boolean; export declare function compileSpreadableList(state: CompilerState, elements: Array<ts.Expression>, compile?: (state: CompilerState, expression: ts.Expression) => string): (string | string[])[]; export declare function compileSpreadableListAndJoin(state: CompilerState, elements: Array<ts.Expression>, shouldWrapInConcat?: boolean, compile?: (state: CompilerState, expression: ts.Expression) => string): string; export declare function compileSpreadExpression(state: CompilerState, expression: ts.Expression): string; export declare function compileSpreadExpressionOrThrow(state: CompilerState, expression: ts.Expression): string; export declare function compileSpreadElement(state: CompilerState, node: ts.SpreadElement): string;