Skip to content

Commit f01fb63

Browse files
authored
feat: export ProtoDescriptorHelper (#245)
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/eggjs/egg/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://github.com/eggjs/egg/blob/master/CONTRIBUTING.md --> ##### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] `npm test` passes - [ ] tests and/or benchmarks are included - [ ] documentation is changed or added - [ ] commit message follows commit guidelines ##### Affected core subsystem(s) <!-- Provide affected core subsystem(s). --> ##### Description of change <!-- Provide a description of the change below this comment. --> <!-- - any feature? - close https://github.com/eggjs/egg/ISSUE_URL --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 20ff262 commit f01fb63

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/core-decorator/test/fixtures/decators/ChildService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class ChildSingletonProto extends ParentSingletonProto {}
1111
})
1212
export class ParentStaticMultiInstanceProto {}
1313

14-
export class ChildStaticMultiInstanceProto extends ParentSingletonProto {}
14+
export class ChildStaticMultiInstanceProto extends ParentStaticMultiInstanceProto {}
1515

1616

1717
@MultiInstanceProto({

core/metadata/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export * from './src/model/graph/ProtoSelector';
1717
export * from './src/model/ProtoDescriptor/AbstractProtoDescriptor';
1818
export * from './src/model/ProtoDescriptor/ClassProtoDescriptor';
1919
export * from './src/model/ModuleDescriptor';
20+
export * from './src/model/ProtoDescriptorHelper';
2021

2122
import './src/impl/ModuleLoadUnit';
2223
import './src/impl/EggPrototypeBuilder';

0 commit comments

Comments
 (0)