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)
25 lines
701 B
TypeScript
25 lines
701 B
TypeScript
// Type definitions for swig
|
|
// Project: http://github.com/paularmstrong/swig
|
|
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
// Imported from: https://github.com/soywiz/typescript-node-definitions/swig.d.ts
|
|
|
|
declare module "swig" {
|
|
export function init(options: Options): void;
|
|
export function compileFile(filepath: string): any;
|
|
export function compile(source: string, options?: Options): any;
|
|
|
|
export interface Options {
|
|
allowErrors?: boolean;
|
|
autoescape?: boolean;
|
|
cache?: boolean;
|
|
encoding?: string;
|
|
filters?: any;
|
|
root?: string;
|
|
tags?: any;
|
|
extensions?: any;
|
|
tzOffset?: number;
|
|
}
|
|
}
|