@armscye/core 0.4.0 → 0.4.3

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/README.md CHANGED
@@ -20,30 +20,30 @@ yarn add @armscye/core --dev
20
20
 
21
21
  ### Abstract `Interface`
22
22
 
23
- Represents an abstract class `T`, if applied to a concrete class it would stop being instantiable.
23
+ Represents an abstract class constructor that creates instances of `T`.
24
24
 
25
25
  ```ts
26
- interface Abstract<T = any> extends Function {
26
+ interface Abstract<T = unknown> extends Function {
27
27
  prototype: T;
28
28
  }
29
29
  ```
30
30
 
31
31
  ### NoArgument `Interface`
32
32
 
33
- Represents an instantiable class `T` with a default (no-argument) constructor.
33
+ Represents a constructable class `T` with a no-argument constructor.
34
34
 
35
35
  ```ts
36
- interface NoArgument<T = any> extends Function {
36
+ interface NoArgument<T = unknown> extends Function {
37
37
  new (): T;
38
38
  }
39
39
  ```
40
40
 
41
41
  ### Type `Interface`
42
42
 
43
- Represents an instantiable class `T` with constructor parameters.
43
+ Represents a constructable class that creates instances of `T`.
44
44
 
45
45
  ```ts
46
- interface Type<T = any> extends Function {
46
+ interface Type<T = unknown> extends Function {
47
47
  new (...args: any[]): T;
48
48
  }
49
49
  ```
@@ -1,7 +1,6 @@
1
1
  /**
2
- * Represents an abstract class `T`, if applied to a concrete class it would stop being
3
- * instantiable.
2
+ * Represents an abstract class constructor that creates instances of `T`.
4
3
  */
5
- export interface Abstract<T = any> extends Function {
4
+ export interface Abstract<T = unknown> extends Function {
6
5
  prototype: T;
7
6
  }
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './abstract';
2
- export * from './no-argumen';
2
+ export * from './no-argument';
3
3
  export * from './type';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Represents a constructable class `T` with a no-argument constructor.
3
+ */
4
+ export interface NoArgument<T = unknown> extends Function {
5
+ new (): T;
6
+ }
package/dist/type.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Represents an instantiable class `T` with constructor parameters.
2
+ * Represents a constructable class that creates instances of `T`.
3
3
  */
4
- export interface Type<T = any> extends Function {
4
+ export interface Type<T = unknown> extends Function {
5
5
  new (...args: any[]): T;
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@armscye/core",
3
- "version": "0.4.0",
3
+ "version": "0.4.3",
4
4
  "description": "A collection of shared standard TypeScript definitions (@core)",
5
5
  "author": "Augustus Kamau",
6
6
  "license": "MIT",
@@ -25,5 +25,5 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "gitHead": "0709eb7276b853296ef820d0e5bd8c170e6d2ee3"
28
+ "gitHead": "e9a42ae673466c9a255f4ebec8750f580e9f70a6"
29
29
  }
@@ -1,6 +0,0 @@
1
- /**
2
- * Represents an instantiable class `T` with a default (no-argument) constructor.
3
- */
4
- export interface NoArgument<T = any> extends Function {
5
- new (): T;
6
- }