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

1.0.5 • 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

/// <reference types="node" />

import { LegacySharedOptions as Options } from "sass";

interface SassResults {
    css: string;
    map: string;
    stats: {
        entry: string;
        start: Date;
        end: Date;
        duration: number;
        includedFiles: string[];
    };
}

type SassOptions = Options<"sync"> & {
    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: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node, sass

Credits

These definitions were written by Jacob Malone.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.5
    1,080
  • 1.0.4
    0
  • 1.0.3
    33
  • 1.0.2
    2,300
  • 1.0.1
    410
  • 1.0.0
    0

Package Sidebar

Install

npm i @types/gulp-dart-sass

Weekly Downloads

3,058

Version

1.0.5

License

MIT

Unpacked Size

4.56 kB

Total Files

5

Last publish

Collaborators

  • types