6.1.4 • Published 2 years ago
@types/gulp-lesshint v6.1.4
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
// Type definitions for gulp-lesshint 6.1
// Project: https://github.com/lesshint/gulp-lesshint
// Definitions by: Martin Badin <https://github.com/martin-badin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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: Wed, 12 Jan 2022 17:31:44 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Martin Badin.