1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/common/app-paths
Sebastian Malton 5a5eda935b
Add better type safety around Channels (#6133)
* Add better type safety around Channels

- Reallow non-JSON serializable complex types

- Remove unnecessary JSON serialization step to IPC

- Remove unnecesary injectable-ization of MessageChannel and
  RequestChannel declarations

- Add channel listener injectable getter function to remove general need
  for type casting and improve type safety

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add check to verify data in IPC related tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix implementation in light of new safety check in tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix listener ID clash potential

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Switch to not forcing split of request channel handlers being seperate from the listener decl

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Move message channels to changed signature too

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix not registering listener

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix test imports

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix type errors

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Refactor listening of different channel kinds

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add test covering new checking code for request channel handlers

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-13 07:50:19 -04:00
..
directory-for-binaries Making apiBase injectable (#6022) 2022-10-05 08:10:36 -04:00
directory-for-downloads Update injectable library (#4842) 2022-02-25 11:10:13 -05:00
directory-for-exes Update injectable library (#4842) 2022-02-25 11:10:13 -05:00
directory-for-kube-configs Making apiBase injectable (#6022) 2022-10-05 08:10:36 -04:00
directory-for-kubectl-binaries Making apiBase injectable (#6022) 2022-10-05 08:10:36 -04:00
directory-for-temp Update injectable library (#4842) 2022-02-25 11:10:13 -05:00
directory-for-user-data Update injectable library (#4842) 2022-02-25 11:10:13 -05:00
get-custom-kube-config-directory Making apiBase injectable (#6022) 2022-10-05 08:10:36 -04:00
app-path-injection-token.ts Introduce way to install update directly from tray. Make application updater unit testable... (#5433) 2022-06-03 11:21:36 +03:00
app-path-names.ts Shorten license header to reduce amount of clutter in top of the files (#4709) 2022-01-18 10:18:10 +02:00
app-paths-channel.ts Add better type safety around Channels (#6133) 2022-10-13 07:50:19 -04:00
app-paths-state.injectable.ts Make starting of application modular and unit testable (#5324) 2022-05-18 16:18:02 +03:00
app-paths.injectable.ts Make starting of application modular and unit testable (#5324) 2022-05-18 16:18:02 +03:00
app-paths.test.ts Clean up versioning and packageJson uses (#6196) 2022-09-15 17:20:58 -04:00