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

12 lines (11 loc) 1.19 kB
import * as ts from "ts-morph"; import { CompilerState } from "../CompilerState"; import { HasParameters } from "../types"; export declare const nodeHasParameters: (ancestor: ts.Node<ts.ts.Node>) => ancestor is HasParameters; export declare function compileReturnStatement(state: CompilerState, node: ts.ReturnStatement): string; export declare function isFunctionExpressionMethod(node: ts.FunctionExpression): boolean; export declare function isMethodDeclaration(node: ts.Node<ts.ts.Node>): node is ts.MethodDeclaration | ts.FunctionExpression; export declare function compileFunctionDeclaration(state: CompilerState, node: ts.FunctionDeclaration): string; export declare function compileMethodDeclaration(state: CompilerState, node: ts.MethodDeclaration, namePrefix: string): string; export declare function compileConstructorDeclaration(state: CompilerState, classExp: ts.ClassDeclaration | ts.ClassExpression, className: string, node: ts.ConstructorDeclaration | undefined, extraInitializers: Array<string>, hasSuper: boolean, isRoact: boolean): string; export declare function compileFunctionExpression(state: CompilerState, node: ts.FunctionExpression | ts.ArrowFunction): string;