typescript typedefs
parent
148502cd95
commit
b7569dd457
|
@ -0,0 +1,44 @@
|
|||
// Type definitions originally for gulp-sass 4.0.2
|
||||
// Project: https://github.com/dlmanning/gulp-sass
|
||||
// Definitions by: Asana <https://asana.com>
|
||||
// Yuma Hashimoto <https://github.com/yuma84>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.7
|
||||
|
||||
/// <reference types="node"/>
|
||||
|
||||
import { Options } from 'sass';
|
||||
|
||||
interface SassResults {
|
||||
css: string;
|
||||
map: string;
|
||||
stats: {
|
||||
entry: string;
|
||||
start: Date;
|
||||
end: Date;
|
||||
duration: number;
|
||||
includedFiles: string[];
|
||||
}
|
||||
}
|
||||
|
||||
interface SassOptions extends Options {
|
||||
success?: (results: SassResults) => any;
|
||||
error?: (err: Error) => any;
|
||||
imagePaths?: string[];
|
||||
}
|
||||
|
||||
interface GulpSassOptions extends SassOptions {
|
||||
errLogToConsole?: boolean;
|
||||
onSuccess?: (css: string) => any;
|
||||
onError?: (err: Error) => any;
|
||||
sync?: boolean;
|
||||
}
|
||||
|
||||
interface Sass {
|
||||
(opts?: GulpSassOptions): NodeJS.ReadWriteStream;
|
||||
logError(error?: string): void;
|
||||
sync(options?: GulpSassOptions): NodeJS.ReadWriteStream;
|
||||
}
|
||||
|
||||
declare var _tmp: Sass;
|
||||
export = _tmp;
|
|
@ -7,7 +7,7 @@
|
|||
"node": ">=14"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "./node_modules/.bin/mocha test"
|
||||
"test": "yarn mocha test"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -24,9 +24,9 @@
|
|||
"email": "gulp-sass@selfisekai.rocks"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/sass": "^1.16.0",
|
||||
"chalk": "^2.3.0",
|
||||
"lodash": "^4.17.11",
|
||||
"node-sass": "^4.8.3",
|
||||
"plugin-error": "^1.0.1",
|
||||
"replace-ext": "^1.0.0",
|
||||
"strip-ansi": "^4.0.0",
|
||||
|
@ -34,17 +34,20 @@
|
|||
"vinyl-sourcemaps-apply": "^0.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node-sass": "^4.11.1",
|
||||
"autoprefixer": "^8.1.0",
|
||||
"eslint": "^4.18.2",
|
||||
"eslint-config-airbnb-base": "^12.1.0",
|
||||
"eslint-plugin-import": "^2.9.0",
|
||||
"globule": "^1.0.0",
|
||||
"gulp": "^3.8.11",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-postcss": "^7.0.1",
|
||||
"gulp-sourcemaps": "^2.6.4",
|
||||
"gulp-tap": "^0.1.3",
|
||||
"mocha": "^5.0.4",
|
||||
"node-sass": "^5.0.0",
|
||||
"rimraf": "^2.4.3",
|
||||
"sass": "^1.29.0",
|
||||
"should": "^13.2.1",
|
||||
"vinyl": "^2.1.0"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue