MCPcopy
hub / github.com/sequelize/sequelize / Invokeable

Interface Invokeable

lib/utils/class-to-invokable.ts:4–7  ·  lib/utils/class-to-invokable.ts::Invokeable

* Utility type for a class which can be called in addion to being used as a constructor.

Source from the content-addressed store, hash-verified

2 * Utility type for a class which can be called in addion to being used as a constructor.
3 */
4interface Invokeable<Args extends Array<any>, Instance> {
5 (...args: Args): Instance;
6 new (...args: Args): Instance;
7}
8
9/**
10 * Wraps a constructor to not need the `new` keyword using a proxy.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected