0.4.0 • Published 2 years ago
@armscye/core v0.4.0
@armscye/core
A collection of shared standard TypeScript definitions (@core).
Installation
Using npm:
npm install --save-dev @armscye/coreor using yarn:
yarn add @armscye/core --devReference
Abstract Interface
Represents an abstract class T, if applied to a concrete class it would stop being instantiable.
interface Abstract<T = any> extends Function {
prototype: T;
}NoArgument Interface
Represents an instantiable class T with a default (no-argument) constructor.
interface NoArgument<T = any> extends Function {
new (): T;
}Type Interface
Represents an instantiable class T with constructor parameters.
interface Type<T = any> extends Function {
new (...args: any[]): T;
}License
This project is licensed under the MIT license.
See LICENSE for more information.