From 8a1649d5ea539d22c7cfd8881595247a07e3fbd7 Mon Sep 17 00:00:00 2001 From: akitaSummer Date: Mon, 21 Oct 2024 13:10:33 +0800 Subject: [PATCH] feat: expand register add loadUnit (#251) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ##### Checklist - [ ] `npm test` passes - [ ] tests and/or benchmarks are included - [ ] documentation is changed or added - [ ] commit message follows commit guidelines ##### Affected core subsystem(s) ##### Description of change ## Summary by CodeRabbit - **New Features** - Enhanced registration process with the ability to include an optional LoadUnit instance. - **Bug Fixes** - Improved method signatures for better clarity and functionality in registration methods. --- plugin/controller/lib/AppLoadUnitControllerHook.ts | 2 +- plugin/controller/lib/ControllerRegister.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/controller/lib/AppLoadUnitControllerHook.ts b/plugin/controller/lib/AppLoadUnitControllerHook.ts index 5db156b5..ea25f251 100644 --- a/plugin/controller/lib/AppLoadUnitControllerHook.ts +++ b/plugin/controller/lib/AppLoadUnitControllerHook.ts @@ -25,7 +25,7 @@ export class AppLoadUnitControllerHook implements LifecycleHook; + register(rootProtoManager: RootProtoManager, loadUnit?: LoadUnit): Promise; }