Page Contents
Home > @loopback/repository > ConstructorFunction
ConstructorFunction interface
Interface for constructor functions without new
operator.
Signature:
export interface ConstructorFunction<T>
Example
function Foo(x) {
if (!(this instanceof Foo)) { return new Foo(x); }
this.x = x;
}