Installation
npm install --save @types/gulp-live-server
Summary
This package contains type definitions for gulp-live-server (https://github.com/gimm/gulp-live-server).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-live-server.
index.d.ts
import type { spawn } from "child_process";
import type { Application, Handler } from "express";
import type { createServer } from "https";
declare namespace gls {
interface LivereloadParams {
livereload?: string;
port?: number;
errorListener?: (error: Error) => void;
handler?: Handler;
app?: Application;
key?: NonNullable<Parameters<typeof createServer>[0]>["key"];
cert?: NonNullable<Parameters<typeof createServer>[0]>["cert"];
pfx?: NonNullable<Parameters<typeof createServer>[0]>["pfx"];
liveCSS?: boolean;
liveImg?: boolean;
prefix?: boolean;
dashboard?: boolean;
}
type Livereload = boolean | number | LivereloadParams;
interface GLSStatic {
start: (execPath?: string) => void;
notify: (event: { path: string }) => void;
stop: () => void;
static: (folder: string, port?: number) => GLSStatic;
new: (script: string) => GLSStatic;
}
type GLS = {
(args: Parameters<typeof spawn>[1], options?: Parameters<typeof spawn>[2], livereload?: Livereload): GLSStatic;
} & GLSStatic;
}
declare var gls: gls.GLS;
export = gls;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/express
Credits
These definitions were written by .