2.1.9 • Published 6 months ago

@types/auto-sni v2.1.9

Weekly downloads
5
License
MIT
Repository
github
Last release
6 months ago

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.

2.1.8

7 months ago

2.1.7

8 months ago

2.1.9

6 months ago

2.1.6

3 years ago

2.1.5

3 years ago

2.1.4

4 years ago

2.1.3

5 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago