MCPcopy
hub / github.com/midwayjs/midway / Framework

Function Framework

packages/core/src/decorator/common/framework.ts:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 * @since 2.0.0
19 */
20export function Framework(): ClassDecorator {
21 return (target: any) => {
22 DecoratorManager.saveModule(FRAMEWORK_KEY, target);
23 Scope(ScopeEnum.Singleton)(target);
24 Provide()(target);
25 };
26}
27
28/**
29 * Plugin decorator, use to get egg plugin instance

Callers 15

framework.tsFile · 0.90
framework.tsFile · 0.90
framework.tsFile · 0.90
framework.tsFile · 0.90
framework.tsFile · 0.90
EmptyFrameworkClass · 0.90
EmptyFrameworkClass · 0.90
CustomFrameworkClass · 0.90
CustomFrameworkClass · 0.90
CustomFramework2Class · 0.90
framework.tsFile · 0.90
framework.tsFile · 0.90

Calls 3

ScopeFunction · 0.85
ProvideFunction · 0.85
saveModuleMethod · 0.80

Tested by

no test coverage detected