@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 +6 -6
- package/dist/abstract.d.ts +2 -3
- package/dist/index.d.ts +1 -1
- package/dist/no-argument.d.ts +6 -0
- package/dist/type.d.ts +2 -2
- package/package.json +2 -2
- package/dist/no-argumen.d.ts +0 -6
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
|
|
23
|
+
Represents an abstract class constructor that creates instances of `T`.
|
|
24
24
|
|
|
25
25
|
```ts
|
|
26
|
-
interface Abstract<T =
|
|
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
|
|
33
|
+
Represents a constructable class `T` with a no-argument constructor.
|
|
34
34
|
|
|
35
35
|
```ts
|
|
36
|
-
interface NoArgument<T =
|
|
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
|
|
43
|
+
Represents a constructable class that creates instances of `T`.
|
|
44
44
|
|
|
45
45
|
```ts
|
|
46
|
-
interface Type<T =
|
|
46
|
+
interface Type<T = unknown> extends Function {
|
|
47
47
|
new (...args: any[]): T;
|
|
48
48
|
}
|
|
49
49
|
```
|
package/dist/abstract.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Represents an abstract class
|
|
3
|
-
* instantiable.
|
|
2
|
+
* Represents an abstract class constructor that creates instances of `T`.
|
|
4
3
|
*/
|
|
5
|
-
export interface Abstract<T =
|
|
4
|
+
export interface Abstract<T = unknown> extends Function {
|
|
6
5
|
prototype: T;
|
|
7
6
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/type.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Represents
|
|
2
|
+
* Represents a constructable class that creates instances of `T`.
|
|
3
3
|
*/
|
|
4
|
-
export interface Type<T =
|
|
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.
|
|
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": "
|
|
28
|
+
"gitHead": "e9a42ae673466c9a255f4ebec8750f580e9f70a6"
|
|
29
29
|
}
|