UNPKG

@types/gulp-sass

Version:
63 lines (49 loc) 1.74 kB
# Installation > `npm install --save @types/gulp-sass` # Summary This package contains type definitions for gulp-sass (https://github.com/dlmanning/gulp-sass). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-sass. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-sass/index.d.ts) ````ts /// <reference types="node"/> import { Options } from "node-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 GulpSass { (opts?: GulpSassOptions): NodeJS.ReadWriteStream; logError(error?: string): void; sync(options?: GulpSassOptions): NodeJS.ReadWriteStream; } type Compiler = any; interface GulpSassFactory { (compiler: Compiler): GulpSass; } declare var _tmp: GulpSassFactory; export = _tmp; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 03:09:37 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/node-sass](https://npmjs.com/package/@types/node-sass) # Credits These definitions were written by [Asana](https://asana.com), and [Yuma Hashimoto](https://github.com/yuma84).