mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
first batch: the easy pickings - as per https://github.com/borisyankov/DefinitelyTyped/issues/115 - added DT headers (scraped creators from git history) - added tests - some modifications - added CONTRIBUTORS.md for the substantial defs (>50 LOC)
26 lines
424 B
TypeScript
26 lines
424 B
TypeScript
/// <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);
|