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

2.1.9 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/auto-sni

Weekly Downloads

1

Version

2.1.9

License

MIT

Unpacked Size

3.78 kB

Total Files

5

Last publish

Collaborators

  • types