A factory that creates a single instance of a value.

Type Parameters

Implements

Constructors

Properties

func: ((module, options, ctx) => T | Promise<T>)

Type declaration

module: M
promise?: Promise<T>
singleton: boolean = true
value?: T

Methods