UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

46 lines (37 loc) 831 B
/// <reference path="twig.d.ts" /> import twig = require('twig'); var value: any; var str: string; var num: number; var bool: boolean; var params: twig.Parameters = { id: value, ref: value, href: value, path: value, debug: bool, trace: bool, strict_variables: bool, data: value }; var temp: twig.Template; var compOpts: twig.CompileOptions = { filename: str, settings: value }; var compiled:(context: any) => any; temp = twig.twig(params); twig.extendFilter(str, (left: any, ...params: any[]) => { return str; }); twig.extendFunction(str, (...params: any[]) => { return str; }); twig.extendTest(str, (value: any) => bool); twig.extendTag(value); compiled = twig.compile(str, compOpts); twig.renderFile(str, compOpts, (err, result) => { }); twig.__express(str, compOpts, (err, result) => { }); twig.cache(bool);