tstosc
Version:
A transpiler that convert TypeScript to SuperCollider's SCLang.
17 lines (14 loc) • 604 B
TypeScript
import ts from 'typescript';
/**
* ### Warning
*
* This function is problematic. If the node contains thees node together:
* * node with a `parent` that is finally a `ts.SourceFile` (node from compiled text)
* * node without a parent (node created by `ts.factory` in code)
*
* The node will not be correctly printed.
*/
declare function convertToTSExpression(node: ts.Node): string;
declare function printTSExpression(...node: ts.Node[]): void;
declare function getTypeOfTSNode(program: ts.Program, node: ts.Node): ts.Type;
export { convertToTSExpression, getTypeOfTSNode, printTSExpression };