2.1.9 • Published 6 months ago
@types/auto-sni v2.1.9
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
// Type definitions for auto-sni 2.1
// Project: https://github.com/dylanpiercey/auto-sni
// Definitions by: Jan Wolf <https://github.com/janwo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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: Wed, 07 Jul 2021 21:44:39 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Jan Wolf.