Skip to content

Type Alias: Newable<T> ​

ts
type Newable<T> = (...args: never[]) => T;

Defined in: src/wirestate-core/types/general.ts:51

Constructor type for a concrete class Wirestate can instantiate.

Type Parameters ​

Type ParameterDefault typeDescription
TunknownInstance type the constructor produces.

Parameters ​

ParameterType
...argsnever[]

Returns ​

T

Remarks ​

Used for service classes, class tokens, and instance binding implementations.