@hg-ts/types 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ declare global {
|
|
|
7
7
|
type NotOptional<T> = T extends undefined ? never : T;
|
|
8
8
|
type Class<Instance = unknown, Argument extends unknown[] = unknown[]> = new (...args: Argument) => Instance;
|
|
9
9
|
type AbstractClass<Instance = unknown, Argument extends unknown[] = unknown[]> = abstract new (...args: Argument) => Instance;
|
|
10
|
+
type AnyCLass<Instance = unknown, Argument extends unknown[] = unknown[]> = Class<Instance, Argument> | AbstractClass<Instance, Argument>;
|
|
10
11
|
|
|
11
12
|
interface ObjectConstructor {
|
|
12
13
|
getPrototypeOf(o: unknown): Nullable<Properties & {
|