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

26 lines (21 loc) 424 B
/// <reference path="swig.d.ts" /> import swig = require('swig'); var value: any; var str: string; var num: number; var bool: boolean; var opts: swig.Options = { allowErrors: bool, autoescape: bool, cache: bool, encoding: str, filters: value, root: str, tags: value, extensions: value, tzOffset: num }; swig.init(opts); value = swig.compileFile(str); value = swig.compile(str); value = swig.compile(str, opts);