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

0.6.3 • Public • Published

Installation

npm install --save @types/connect-livereload

Summary

This package contains type definitions for connect-livereload (https://github.com/intesso/connect-livereload).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-livereload.

index.d.ts

import { HandleFunction } from "connect";

declare function livereload(): HandleFunction;
declare function livereload(options: livereload.Options): HandleFunction;

declare namespace livereload {
    export type FileMatcher = string | RegExp;

    export interface Rule {
        match: RegExp;
        fn: (w: string, s: string) => string;
    }

    export interface Options {
        ignore?: FileMatcher[] | undefined;
        excludeList?: FileMatcher[] | undefined;

        include?: FileMatcher[] | undefined;
        html?: ((val: string) => boolean) | undefined;
        rules?: Rule[] | undefined;
        disableCompression?: boolean | undefined;

        hostname?: string | undefined;
        port?: number | undefined;
        src?: string | undefined;
        plugins?: string[] | undefined;
    }
}

export = livereload;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/connect

Credits

These definitions were written by Maxime LUCE.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/connect-livereload

    Weekly Downloads

    6,592

    Version

    0.6.3

    License

    MIT

    Unpacked Size

    4.38 kB

    Total Files

    5

    Last publish

    Collaborators

    • types