Skip to content

Commit ae6414a

Browse files
authored
bug fixing + improved composition/decomposition
1 parent d230cac commit ae6414a

File tree

291 files changed

+6181
-3540
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+6181
-3540
lines changed

.eslintrc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{
22
"root": true,
33
"parser": "@typescript-eslint/parser",
4-
"plugins": ["@typescript-eslint", "prettier", "eslint-plugin-import"],
4+
"plugins": [
5+
"@typescript-eslint",
6+
"prettier",
7+
"eslint-plugin-import",
8+
"unused-imports"
9+
],
510
"extends": [
611
"eslint:recommended",
712
"plugin:@typescript-eslint/eslint-recommended",
@@ -35,6 +40,7 @@
3540
"@typescript-eslint/explicit-module-boundary-types": "off",
3641
"@typescript-eslint/no-explicit-any": "off",
3742
"@typescript-eslint/no-var-requires": "off",
38-
"@typescript-eslint/no-non-null-assertion": "off"
43+
"@typescript-eslint/no-non-null-assertion": "off",
44+
"unused-imports/no-unused-imports": "error"
3945
}
4046
}

.prettierrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"singleQuote": true,
33
"trailingComma": "es5",
44
"semi": false,
5-
"bracketSpacing": true
6-
}
5+
"bracketSpacing": true,
6+
"plugins": ["prettier-plugin-organize-imports"]
7+
}

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,21 @@
6060
"@types/node": "16.11.26",
6161
"@types/svg-path-bounding-box": "1.0.0",
6262
"@types/ws": "8.5.2",
63-
"@typescript-eslint/eslint-plugin": "5.59.0",
64-
"@typescript-eslint/parser": "5.59.0",
63+
"@typescript-eslint/eslint-plugin": "6.0.0",
64+
"@typescript-eslint/parser": "6.0.0",
6565
"@typescript-eslint/typescript-estree": "5.37.0",
6666
"esbuild": "0.17.5",
6767
"eslint": "8.5.0",
6868
"eslint-config-prettier": "8.3.0",
69-
"eslint-plugin-prettier": "3.4.0",
7069
"eslint-plugin-import": "2.27.5",
70+
"eslint-plugin-prettier": "3.4.0",
71+
"eslint-plugin-unused-imports": "3.0.0",
7172
"fs-extra": "10.1.0",
72-
"nodemon": "2.0.20",
73+
"nodemon": "3.0.1",
7374
"npm-run-all": "4.1.5",
7475
"npm-run-scripts": "2.1.3",
7576
"prettier": "2.3.1",
76-
"prettier-plugin-organize-imports": "2.1.0",
77+
"prettier-plugin-organize-imports": "3.2.3",
7778
"shx": "0.3.3",
7879
"ts-node": "10.4.0",
7980
"typescript": "5.0.4",

src/API.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IOElement } from './client/IOElement'
2-
import { Rect, Size } from './client/util/geometry'
2+
import { Rect, Size } from './client/util/geometry/types'
33
import {
44
APIAlert,
55
APIChannel,

src/AsyncWorker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export function AsyncWorker(client: RemotePort, _: string[]): any {
8080
J: AsyncWorkerJ,
8181
U: AsyncWorkerU,
8282
ST: AsyncWorkerST,
83+
EE: AsyncWorkerEE,
8384
S: AsyncWorkerS,
8485
})
8586
}

src/Class/Element/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ import { MethodNotImplementedError } from '../../exception/MethodNotImplementedE
2020
import { System } from '../../system'
2121
import { Dict } from '../../types/Dict'
2222
import { C_EE } from '../../types/interface/C'
23-
import { ComponentEvents, Component_ } from '../../types/interface/Component'
23+
import { Component_, ComponentEvents } from '../../types/interface/Component'
2424
import { E } from '../../types/interface/E'
2525
import { UnitBundle } from '../../types/UnitBundle'
2626
import { UnitBundleSpec } from '../../types/UnitBundleSpec'
2727
import { forEach } from '../../util/array'
2828
import { Stateful, StatefulEvents } from '../Stateful'
2929
import { ION, Opt } from '../Unit'
3030

31-
export type Element_EE = C_EE & { call: [{ method: string; data: any[] }] }
31+
export type Element_EE = C_EE
3232

3333
export type ElementEE<_EE extends Dict<any[]>> = StatefulEvents<
3434
_EE & Element_EE

0 commit comments

Comments
 (0)