1.0.5 • Published 2 years ago
@types/gulp-dart-sass v1.0.5
Installation
npm install --save @types/gulp-dart-sass
Summary
This package contains type definitions for gulp-dart-sass (https://github.com/mattdsteele/gulp-dart-sass#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-dart-sass.
index.d.ts
// Type definitions for gulp-dart-sass 1.0
// Project: https://github.com/mattdsteele/gulp-dart-sass#readme
// Definitions by: Jacob Malone <https://github.com/jcbmln>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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) | undefined;
error?: ((err: Error) => any) | undefined;
imagePaths?: string[] | undefined;
}
interface GulpSassOptions extends SassOptions {
errLogToConsole?: boolean | undefined;
onSuccess?: ((css: string) => any) | undefined;
onError?: ((err: Error) => any) | undefined;
sync?: boolean | undefined;
}
interface Sass {
(opts?: GulpSassOptions): NodeJS.ReadWriteStream;
logError(error?: string): void;
sync(options?: GulpSassOptions): NodeJS.ReadWriteStream;
}
declare var _tmp: Sass;
export = _tmp;
Additional Details
- Last updated: Thu, 08 Jul 2021 12:02:36 GMT
- Dependencies: @types/sass
- Global values: none
Credits
These definitions were written by Jacob Malone.