@decaf-ts/for-angular 0.0.41 → 0.0.43
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 +23 -3
- package/fesm2022/decaf-ts-for-angular.mjs +1729 -705
- package/fesm2022/decaf-ts-for-angular.mjs.map +1 -1
- package/index.d.ts +837 -138
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
# Decaf's Angular Module
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|

|
|
7
6
|

|
|
8
7
|

|
|
@@ -32,6 +31,9 @@
|
|
|
32
31
|
|
|
33
32
|
Documentation available [here](https://decaf-ts.github.io/for-angular/)
|
|
34
33
|
|
|
34
|
+
Minimal size: ##PACKAGE_SIZE## kb gzipped
|
|
35
|
+
|
|
36
|
+
|
|
35
37
|
### Description
|
|
36
38
|
|
|
37
39
|
A very versatile persistence layer. from smart contracts, Digital wallets or just regular database access
|
|
@@ -46,6 +48,24 @@ A very versatile persistence layer. from smart contracts, Digital wallets or jus
|
|
|
46
48
|
|
|
47
49
|
|
|
48
50
|
|
|
51
|
+
## Coding Principles
|
|
52
|
+
|
|
53
|
+
- group similar functionality in folders (analog to namespaces but without any namespace declaration)
|
|
54
|
+
- one class per file;
|
|
55
|
+
- one interface per file (unless interface is just used as a type);
|
|
56
|
+
- group types as other interfaces in a types.ts file per folder;
|
|
57
|
+
- group constants or enums in a constants.ts file per folder;
|
|
58
|
+
- group decorators in a decorators.ts file per folder;
|
|
59
|
+
- always import from the specific file, never from a folder or index file (exceptions for dependencies on other packages);
|
|
60
|
+
- prefer the usage of established design patters where applicable:
|
|
61
|
+
- Singleton (can be an anti-pattern. use with care);
|
|
62
|
+
- factory;
|
|
63
|
+
- observer;
|
|
64
|
+
- strategy;
|
|
65
|
+
- builder;
|
|
66
|
+
- etc;
|
|
67
|
+
|
|
68
|
+
|
|
49
69
|
### Related
|
|
50
70
|
|
|
51
71
|
[](https://github.com/decaf-ts/decaf-ts)
|
|
@@ -87,6 +107,6 @@ So if you can, if this project in any way. either by learning something or simpl
|
|
|
87
107
|
|
|
88
108
|
## License
|
|
89
109
|
|
|
90
|
-
This project is
|
|
110
|
+
This project is licensed under the Mozilla Public License 2.0 (MPL-2.0). See `./LICENSE.md` for a Fair Usage Addendum that explains when AGPL-3.0 applies (automated AI/Decaf MCP code generation and non-deterministic UI generation).
|
|
91
111
|
|
|
92
112
|
By developers, for developers...
|