mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[gulp-pug] Introduce new typings (#18575)
* Introduce gulp-pug * fix revision comments
This commit is contained in:
parent
d2ea3d1239
commit
b81ce46d6a
8
types/gulp-pug/gulp-pug-tests.ts
Normal file
8
types/gulp-pug/gulp-pug-tests.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { src, dest } from 'gulp';
|
||||
import * as gulpPug from 'gulp-pug';
|
||||
|
||||
let s1 = gulpPug();
|
||||
let s2 = gulpPug({});
|
||||
let s3 = gulpPug({ basedir: '.' });
|
||||
|
||||
src('fixtures.js').pipe(s1).pipe(s2).pipe(s3);
|
||||
24
types/gulp-pug/index.d.ts
vendored
Normal file
24
types/gulp-pug/index.d.ts
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
// Type definitions for gulp-pug 3.3
|
||||
// Project: https://github.com/pugjs/gulp-pug#readme
|
||||
// Definitions by: remisery <https://github.com/remisery>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import stream = require('stream');
|
||||
|
||||
import { Options } from 'pug';
|
||||
|
||||
declare function GulpPug(params?: GulpPug.Params): stream.Transform;
|
||||
|
||||
declare namespace GulpPug {
|
||||
interface Params extends Options {
|
||||
locals?: any;
|
||||
data?: any;
|
||||
client?: boolean;
|
||||
pug?: any;
|
||||
verbose?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export = GulpPug;
|
||||
22
types/gulp-pug/tsconfig.json
Normal file
22
types/gulp-pug/tsconfig.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"gulp-pug-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/gulp-pug/tslint.json
Normal file
3
types/gulp-pug/tslint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user