A factory that creates a single instance of a value.

Type Parameters

Implements

Constructors

Properties

func: ((module, options, ctx) => T)

Type declaration

module: M
singleton: boolean = true
value?: T

Methods