Installation
npm install --save @types/auto-sni
Summary
This package contains type definitions for auto-sni (https://github.com/dylanpiercey/auto-sni).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/auto-sni.
index.d.ts
/// <reference types="node" />
import { Server } from "https";
declare namespace createServer {
type DomainList = Array<string | string[]>;
interface Options {
email: string;
agreeTos: boolean;
domains: DomainList | (() => DomainList | Promise<DomainList>);
dir?: string | undefined;
ports?: {
http?: number | undefined;
https?: number | undefined;
} | undefined;
debug?: boolean | undefined;
}
}
declare function createServer(opts: createServer.Options, app?: any): Server;
export = createServer;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: @types/node
Credits
These definitions were written by Jan Wolf.