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

6.1.4 • Public • Published

Installation

npm install --save @types/gulp-lesshint

Summary

This package contains type definitions for gulp-lesshint (https://github.com/lesshint/gulp-lesshint).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-lesshint.

index.d.ts

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

import { Transform } from "stream";

declare namespace gulpLesshint {
    interface Options {
        configPath?: string;
        maxWarnings?: number;
    }

    interface LessHintFile {
        lesshint: {
            success: boolean;
            resultCount: number;
            results: {
                column: number;
                file: string;
                fullPath: string;
                line: number;
                linter: string;
                message: string;
                severity: string;
            };
        };
        [key: string]: any;
    }

    interface Plugin {
        (options?: Options): {
            on(event: "data", listener: (file: LessHintFile) => void): Transform;
        } & Transform;
        reporter(reporter?: string): Transform;
        failOnError(): Transform;
        failOnWarning(): Transform;
    }
}

declare const lesshintPlugin: gulpLesshint.Plugin;

export = lesshintPlugin;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Martin Badin.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/gulp-lesshint

Weekly Downloads

18

Version

6.1.4

License

MIT

Unpacked Size

4.61 kB

Total Files

5

Last publish

Collaborators

  • types