Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "contracts"

Index

Type aliases

HttpServer

HttpServer: PlainHttpServer | SecureHttpServer

A HTTP(s) server innstance.

HttpServerFactory

HttpServerFactory: () => HttpServer

A function, that creates or returns a HTTP(s) server instance.

returns

The new instance.

Type declaration

Nilable

Nilable<T>: T | null | undefined

A type, that can be (null) or (undefined).

Type parameters

  • T: any

Predicate

Predicate<T>: (val: T) => boolean

A function that checks something.

param

The value to check.

returns

Value matches condition or not.

Type parameters

  • T: any

Type declaration

    • (val: T): boolean
    • Parameters

      • val: T

      Returns boolean

Url

Url: string | URL

Possible value for an URL.

WebSocketData

WebSocketData: string | Buffer

Valid web socket data.

WebSocketServerFactory

WebSocketServerFactory: (opts?: WebSocketServerOptions | undefined) => WebSocketServer

A function, that creates or returns a web socket server instance.

returns

The new instance.

Type declaration

    • (opts?: WebSocketServerOptions | undefined): WebSocketServer
    • Parameters

      • Optional opts: WebSocketServerOptions | undefined

      Returns WebSocketServer

WebSocketServerKey

WebSocketServerKey: string | Buffer

A valid value for a web socket server key.

Generated using TypeDoc