mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-23 12:50:40 +08:00
27 lines
771 B
TypeScript
27 lines
771 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
|
|
|
|
// API Documentation : http://paularmstrong.github.io/swig/docs/api/
|
|
|
|
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;
|
|
}
|
|
}
|