lenix 1.4.2 → 1.4.4

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
@@ -17,4 +17,22 @@ The All-in-one Repository
17
17
  ### OOP
18
18
  - [ ] Implement the complete annotation
19
19
  - [ ] Provide Documentation
20
- - [ ] Clearify the installation steps
20
+ - [ ] Clearify the installation steps
21
+
22
+ ## Usage
23
+ ### Lint
24
+ ```ts
25
+ import lint from 'lenix/lint' with { type: "json" }
26
+ languageOptions: {
27
+ [....],
28
+ parserOptions: {
29
+ projectService: true,
30
+ tsconfigRootDir: import.meta.dirname,
31
+ },
32
+ [....],
33
+ }
34
+ rules: {
35
+ [....],
36
+ ...lint.strict
37
+ [....],
38
+ }
@@ -0,0 +1,22 @@
1
+ export type Events = "users-management"
2
+ export interface CreateUser<Role> {
3
+ identifier: string
4
+ role: Role
5
+ password: string
6
+ }
7
+ export interface UserAccount<Role, Label = unknown | string> {
8
+ id: string
9
+ identifier: string
10
+ role: Role
11
+ roleLabel: Label
12
+ }
13
+ export interface DeleteUser {
14
+ identifier: string
15
+ }
16
+
17
+ /**
18
+ * @private
19
+ * DON NOT USE
20
+ * @description
21
+ * A proxy between client and server contexts that can provide a one source of truth instead of duplicating codes, lack of clearancy, race conditions, ...
22
+ */
@@ -1,4 +1,4 @@
1
1
  export { wait } from './wait'
2
2
  export { caughtFetch } from './fetch'
3
3
  export { entries } from './entries'
4
- export { lint } from './lint'
4
+ export * as edge from './edge'
@@ -337,7 +337,7 @@
337
337
  "@typescript-eslint/prefer-promise-reject-errors": "error",
338
338
  "@typescript-eslint/prefer-readonly": "error",
339
339
  "@typescript-eslint/prefer-readonly-parameter-types": [
340
- "error",
340
+ "warn",
341
341
  {
342
342
  "ignoreInferredTypes": true
343
343
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lenix",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "The All-in-one Package",
5
5
  "author": "Lenix",
6
6
  "license": "GPL-3.0",