MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / applyMixin

Method applyMixin

framework/framework/server.ts:889–893  ·  view source on GitHub ↗
(name: T, MixinClass: any)

Source from the content-addressed store, hash-verified

887 }
888
889 public applyMixin<T extends keyof KnownHandlers>(name: T, MixinClass: any) {
890 this.withHandlerClass(name, (HandlerClass) => {
891 this._applyMixin(HandlerClass, MixinClass);
892 });
893 }
894
895 public handlerMixin(MixinClass: Partial<HandlerCommon> | ((s: HandlerCommon) => Partial<HandlerCommon>)) {
896 return this._applyMixin(HandlerCommon, MixinClass);

Callers

nothing calls this directly

Calls 2

withHandlerClassMethod · 0.95
_applyMixinMethod · 0.95

Tested by

no test coverage detected