From f01fb639b153a907fd9c951d4b1e40ba101b43d0 Mon Sep 17 00:00:00 2001 From: Gxkl Date: Wed, 9 Oct 2024 15:26:24 +0800 Subject: [PATCH] feat: export ProtoDescriptorHelper (#245) 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 module interface by adding exports from the `ProtoDescriptorHelper`, providing additional functionality. - **Refactor** - Updated the inheritance structure of the `ChildStaticMultiInstanceProto` class to improve its relationship within the class hierarchy. --- core/core-decorator/test/fixtures/decators/ChildService.ts | 2 +- core/metadata/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-decorator/test/fixtures/decators/ChildService.ts b/core/core-decorator/test/fixtures/decators/ChildService.ts index 3dbe1571..22550a3b 100644 --- a/core/core-decorator/test/fixtures/decators/ChildService.ts +++ b/core/core-decorator/test/fixtures/decators/ChildService.ts @@ -11,7 +11,7 @@ export class ChildSingletonProto extends ParentSingletonProto {} }) export class ParentStaticMultiInstanceProto {} -export class ChildStaticMultiInstanceProto extends ParentSingletonProto {} +export class ChildStaticMultiInstanceProto extends ParentStaticMultiInstanceProto {} @MultiInstanceProto({ diff --git a/core/metadata/index.ts b/core/metadata/index.ts index 021781ed..8834354b 100644 --- a/core/metadata/index.ts +++ b/core/metadata/index.ts @@ -17,6 +17,7 @@ export * from './src/model/graph/ProtoSelector'; export * from './src/model/ProtoDescriptor/AbstractProtoDescriptor'; export * from './src/model/ProtoDescriptor/ClassProtoDescriptor'; export * from './src/model/ModuleDescriptor'; +export * from './src/model/ProtoDescriptorHelper'; import './src/impl/ModuleLoadUnit'; import './src/impl/EggPrototypeBuilder';