@armscye/core 0.1.0 → 0.3.0
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @armscye/core
|
|
2
2
|
|
|
3
|
-
> A collection of shared standard TypeScript definitions.
|
|
3
|
+
> A collection of shared standard TypeScript definitions (@core).
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -15,3 +15,41 @@ or using yarn:
|
|
|
15
15
|
```sh
|
|
16
16
|
yarn add @armscye/core --dev
|
|
17
17
|
```
|
|
18
|
+
|
|
19
|
+
## Reference
|
|
20
|
+
|
|
21
|
+
### Abstract `Interface`
|
|
22
|
+
|
|
23
|
+
Represents an abstract class `T`, if applied to a concrete class it would stop being instantiable.
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
interface Abstract<T = any> extends Function {
|
|
27
|
+
prototype: T;
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### NoArgument `Interface`
|
|
32
|
+
|
|
33
|
+
Represents an instantiable class `T` with a default (no-argument) constructor.
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
interface NoArgument<T = any> extends Function {
|
|
37
|
+
new (): T;
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Type `Interface`
|
|
42
|
+
|
|
43
|
+
Represents an instantiable class `T` with constructor parameters.
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
interface Type<T = any> extends Function {
|
|
47
|
+
new (...args: any[]): T;
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## License
|
|
52
|
+
|
|
53
|
+
This project is licensed under the **MIT license**.
|
|
54
|
+
|
|
55
|
+
See [LICENSE](LICENSE) for more information.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './abstract
|
|
2
|
-
export * from './no-
|
|
3
|
-
export * from './type
|
|
1
|
+
export * from './abstract';
|
|
2
|
+
export * from './no-argumen';
|
|
3
|
+
export * from './type';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@armscye/core",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "A collection of shared standard TypeScript definitions",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "A collection of shared standard TypeScript definitions (@core)",
|
|
5
5
|
"author": "Augustus Kamau",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"keywords": [
|
|
12
12
|
"armscye",
|
|
13
13
|
"typescript",
|
|
14
|
-
"types"
|
|
14
|
+
"types",
|
|
15
|
+
"core"
|
|
15
16
|
],
|
|
16
17
|
"homepage": "https://github.com/armscye/armscye#readme",
|
|
17
18
|
"repository": {
|
|
@@ -24,5 +25,5 @@
|
|
|
24
25
|
"publishConfig": {
|
|
25
26
|
"access": "public"
|
|
26
27
|
},
|
|
27
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "a26e3829ccbd43eae0ab1a1dd165af7ae7b355c1"
|
|
28
29
|
}
|
|
File without changes
|