mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Merge pull request #7633 from tkrotoff/fix-gulp-imports
Fix gulp-* imports and namespaces
This commit is contained in:
+7
-7
@@ -6,15 +6,15 @@
|
||||
/// <reference path="../node/node.d.ts"/>
|
||||
|
||||
declare module "gulp-autoprefixer" {
|
||||
interface Options {
|
||||
browsers?: string[];
|
||||
cascade?: boolean;
|
||||
remove?: boolean;
|
||||
namespace autoPrefixer {
|
||||
interface Options {
|
||||
browsers?: string[];
|
||||
cascade?: boolean;
|
||||
remove?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
function autoPrefixer(opts?: Options): NodeJS.ReadWriteStream;
|
||||
|
||||
namespace autoPrefixer {}
|
||||
function autoPrefixer(opts?: autoPrefixer.Options): NodeJS.ReadWriteStream;
|
||||
|
||||
export = autoPrefixer;
|
||||
}
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
/// <reference path="../gulp-rev/gulp-rev.d.ts" />
|
||||
/// <reference path="../gulp-useref/gulp-useref.d.ts" />
|
||||
|
||||
import gulp = require('gulp');
|
||||
import revReplace = require('gulp-rev-replace');
|
||||
import rev = require('gulp-rev');
|
||||
import useref = require('gulp-useref');
|
||||
import * as gulp from 'gulp';
|
||||
import * as revReplace from 'gulp-rev-replace';
|
||||
import * as rev from 'gulp-rev';
|
||||
import * as useref from 'gulp-useref';
|
||||
|
||||
gulp.task("index", () => {
|
||||
return gulp.src("src/index.html")
|
||||
|
||||
+11
-9
@@ -6,16 +6,18 @@
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
declare module 'gulp-rev-replace' {
|
||||
interface IOptions {
|
||||
canonicalUris?: boolean;
|
||||
replaceInExtensions?: Array<string>;
|
||||
prefix?: string;
|
||||
manifest?: NodeJS.ReadWriteStream;
|
||||
modifyUnreved?: Function;
|
||||
modifyReved?: Function;
|
||||
namespace revReplace {
|
||||
interface Options {
|
||||
canonicalUris?: boolean;
|
||||
replaceInExtensions?: Array<string>;
|
||||
prefix?: string;
|
||||
manifest?: NodeJS.ReadWriteStream;
|
||||
modifyUnreved?: Function;
|
||||
modifyReved?: Function;
|
||||
}
|
||||
}
|
||||
|
||||
function revReplace(options?: IOptions): NodeJS.ReadWriteStream;
|
||||
function revReplace(options?: revReplace.Options): NodeJS.ReadWriteStream;
|
||||
|
||||
export = revReplace;
|
||||
export = revReplace;
|
||||
}
|
||||
|
||||
Vendored
+12
-12
@@ -6,20 +6,20 @@
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
declare module 'gulp-size' {
|
||||
interface IOptions {
|
||||
showFiles?: boolean;
|
||||
gzip?: boolean;
|
||||
title?: string;
|
||||
namespace size {
|
||||
interface Options {
|
||||
showFiles?: boolean;
|
||||
gzip?: boolean;
|
||||
title?: string;
|
||||
}
|
||||
|
||||
interface SizeStream extends NodeJS.ReadWriteStream {
|
||||
size: number;
|
||||
prettySize: string;
|
||||
}
|
||||
}
|
||||
|
||||
interface ISizeStream extends NodeJS.ReadWriteStream {
|
||||
size: number;
|
||||
prettySize: string;
|
||||
}
|
||||
|
||||
function size(options?: IOptions): ISizeStream;
|
||||
|
||||
namespace size {}
|
||||
function size(options?: size.Options): size.SizeStream;
|
||||
|
||||
export = size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user