Norwegian Parcel Mail

    @types/gulp-dart-sass
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    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.

    Keywords

    none

    Install

    npm i @types/gulp-dart-sass

    DownloadsWeekly Downloads

    2,171

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.88 kB

    Total Files

    4

    Last publish

    Collaborators

    • types