mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fix for Typescript import syntax
ES6 style syntax causes compiled code to function in unintended ways, leading to incorrect JavaScript code.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
/// <reference path="./gulp-jade.d.ts"/>
|
||||
|
||||
import * as gulp from 'gulp';
|
||||
import jade from 'gulp-jade';
|
||||
import * as jade from 'gulp-jade';
|
||||
|
||||
gulp.task('jade', () => {
|
||||
gulp.src('src/**/*.jade')
|
||||
|
||||
Vendored
+79
-75
@@ -4,80 +4,84 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module "gulp-jade" {
|
||||
export default function jade(params?: JadeParams): any;
|
||||
|
||||
interface JadeParams {
|
||||
|
||||
/*******
|
||||
* JADE API OPTIONS
|
||||
*******/
|
||||
|
||||
/**
|
||||
* If the doctype is not specified as part of the
|
||||
* template, you can specify it here. It is sometimes
|
||||
* useful to get self-closing tags and remove mirroring
|
||||
* of boolean attributes.
|
||||
*/
|
||||
doctype?: string;
|
||||
|
||||
/**
|
||||
* Adds whitespace to the resulting html to make it
|
||||
* easier for a human to read using ' ' as indentation.
|
||||
* If a string is specified, that will be used as
|
||||
* indentation instead (e.g. '\t').
|
||||
*/
|
||||
pretty?: any;
|
||||
|
||||
/**
|
||||
* Use a self namespace to hold the locals (false by default)
|
||||
*/
|
||||
self?: boolean;
|
||||
|
||||
/**
|
||||
* If set to true, the tokens and function body is logged
|
||||
* to stdout
|
||||
*/
|
||||
debug?: boolean;
|
||||
|
||||
/**
|
||||
* If set to true, the function source will be included in the
|
||||
* compiled template for better error messages (sometimes useful
|
||||
* in development). It is enabled by default unless used with
|
||||
* express in production mode.
|
||||
*/
|
||||
compileDebug?:boolean;
|
||||
|
||||
/**
|
||||
* If set to true, compiled functions are cached. filename
|
||||
* must be set as the cache key.
|
||||
*/
|
||||
cache?:boolean;
|
||||
|
||||
/*******
|
||||
* GULP-JADE OPTIONS
|
||||
*******/
|
||||
|
||||
/**
|
||||
* Used to set a version of jade other than this library's
|
||||
* dependency, or to customise filters.
|
||||
*/
|
||||
jade?: any;
|
||||
|
||||
/**
|
||||
* Compile to JS instead of HTML.
|
||||
*/
|
||||
client?: boolean;
|
||||
|
||||
/**
|
||||
* Locals to be used while parsing jade files. Takes
|
||||
* precedence over data.
|
||||
*/
|
||||
locals?: any;
|
||||
|
||||
/**
|
||||
* Data to be used while parsing jade files. Has lower
|
||||
* precedence than locals.
|
||||
*/
|
||||
data?: any;
|
||||
|
||||
function GulpJade(params?: GulpJade.Params): any;
|
||||
|
||||
module GulpJade {
|
||||
interface Params {
|
||||
/*******
|
||||
* JADE API OPTIONS
|
||||
*******/
|
||||
|
||||
/**
|
||||
* If the doctype is not specified as part of the
|
||||
* template, you can specify it here. It is sometimes
|
||||
* useful to get self-closing tags and remove mirroring
|
||||
* of boolean attributes.
|
||||
*/
|
||||
doctype?: string;
|
||||
|
||||
/**
|
||||
* Adds whitespace to the resulting html to make it
|
||||
* easier for a human to read using ' ' as indentation.
|
||||
* If a string is specified, that will be used as
|
||||
* indentation instead (e.g. '\t').
|
||||
*/
|
||||
pretty?: any;
|
||||
|
||||
/**
|
||||
* Use a self namespace to hold the locals (false by default)
|
||||
*/
|
||||
self?: boolean;
|
||||
|
||||
/**
|
||||
* If set to true, the tokens and function body is logged
|
||||
* to stdout
|
||||
*/
|
||||
debug?: boolean;
|
||||
|
||||
/**
|
||||
* If set to true, the function source will be included in the
|
||||
* compiled template for better error messages (sometimes useful
|
||||
* in development). It is enabled by default unless used with
|
||||
* express in production mode.
|
||||
*/
|
||||
compileDebug?:boolean;
|
||||
|
||||
/**
|
||||
* If set to true, compiled functions are cached. filename
|
||||
* must be set as the cache key.
|
||||
*/
|
||||
cache?:boolean;
|
||||
|
||||
/*******
|
||||
* GULP-JADE OPTIONS
|
||||
*******/
|
||||
|
||||
/**
|
||||
* Used to set a version of jade other than this library's
|
||||
* dependency, or to customise filters.
|
||||
*/
|
||||
jade?: any;
|
||||
|
||||
/**
|
||||
* Compile to JS instead of HTML.
|
||||
*/
|
||||
client?: boolean;
|
||||
|
||||
/**
|
||||
* Locals to be used while parsing jade files. Takes
|
||||
* precedence over data.
|
||||
*/
|
||||
locals?: any;
|
||||
|
||||
/**
|
||||
* Data to be used while parsing jade files. Has lower
|
||||
* precedence than locals.
|
||||
*/
|
||||
data?: any;
|
||||
}
|
||||
}
|
||||
|
||||
export = GulpJade;
|
||||
}
|
||||
Reference in New Issue
Block a user