npm.io
1.1.0 • Published 2 years ago

@types/gulp-help-doc

Licence
MIT
Version
1.1.0
Deps
1
Size
7 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/gulp-help-doc

Summary

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

Details

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

index.d.ts

import gulp = require("gulp");

declare namespace usage {
    interface UsageOptions {
        /**
         * Defines max line width for the printed output lines.
         *
         * @default 80
         */
        lineWidth?: number | undefined;

        /**
         * Defines max width of the column width tasks or args names.
         *
         * @default 20
         */
        keysColumnWidth?: number | undefined;

        /**
         * Defines number of empty characters for left-padding of the output.
         * @default 4
         */
        padding?: number | undefined;

        /**
         * Defines number of empty characters before group name output.
         *
         * @default 1
         */
        groupPadding?: number | undefined;

        /**
         * Undocumented option.
         *
         * @default "magenta"
         */
        groupColor?: string | undefined;

        /**
         * Printing engine. Accepted any device which has log() function defined to do output.
         *
         * @default console
         */
        logger?: { log: (message: string) => void } | undefined;

        /**
         * Undocumented option.
         *
         * @default fs.existsSync('gulpfile.ts')
         */
        isTypescript?: boolean | undefined;

        /**
         * Path to a gulpfile.
         * Normally, there is no need to change this option. It may be used
         * for some special cases, like mocking gulpfile for testing.
         */
        gulpfile?: string | undefined;

        /**
         * if set to true, prints the task dependencies below its help description.
         *
         * @default true
         */
        displayDependencies?: boolean | undefined;

        /**
         * if set to true, prints an empty line between tasks help descriptions.
         *
         * @default true
         */
        emptyLineBetweenTasks?: boolean | undefined;

        /**
         * if group tag is not specified it will use specified group name.
         *
         * @default "Common tasks"
         */
        defaultGroupName?: string | undefined;
    }

    interface Usage {
        (gulp: gulp.Gulp, options?: UsageOptions): Promise<any>;
    }
}

declare const usage: usage.Usage;

export = usage;

Additional Details

  • Last updated: Fri, 27 Sep 2024 1738 GMT
  • Dependencies: @types/gulp

Credits

These definitions were written by Mikhus.