diff --git a/types/gulp-postcss/gulp-postcss-tests.ts b/types/gulp-postcss/gulp-postcss-tests.ts index 9fe2284389..8da7748431 100644 --- a/types/gulp-postcss/gulp-postcss-tests.ts +++ b/types/gulp-postcss/gulp-postcss-tests.ts @@ -1,7 +1,8 @@ import * as gulp from 'gulp'; import * as postcss from 'gulp-postcss'; import * as autoprefixer from 'autoprefixer'; -import * as Vinyl from 'vinyl' +import * as Vinyl from 'vinyl'; +import * as sass from 'sass'; gulp.task('postCss1', () => { return gulp.src('./src/*.css') @@ -16,14 +17,12 @@ gulp.task('postCss2', () => { .pipe(gulp.dest('./dest')); }); -/* gulp.task('postCss3', () => { const plugins = [ autoprefixer({browsers: ['last 1 version']}) ]; return gulp.src('in.sss') - .pipe(postcss(plugins, { parser: sugarss })) + .pipe(postcss(plugins, { parser: sass })) .pipe(gulp.dest('out')); }); -*/ gulp.task('postCss4', () => { function callback(file: Vinyl) { diff --git a/types/gulp-postcss/index.d.ts b/types/gulp-postcss/index.d.ts index 864be16098..ba05acaac2 100644 --- a/types/gulp-postcss/index.d.ts +++ b/types/gulp-postcss/index.d.ts @@ -2,12 +2,12 @@ // Project: https://www.npmjs.com/package/gulp-postcss // Definitions by: Takesi Tokugawa // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 +// TypeScript Version: 2.8 /// import Vinyl = require('vinyl'); -declare function GulpPostCss(plugins?: string[], options?: GulpPostCss.Options): NodeJS.ReadWriteStream; +declare function GulpPostCss(plugins?: any[], options?: GulpPostCss.Options): NodeJS.ReadWriteStream; declare function GulpPostCss(callback?: (file: Vinyl) => { plugins?: string[], options?: GulpPostCss.Options }): NodeJS.ReadWriteStream;