MCPcopy
hub / github.com/loopbackio/loopback-next / BaseClass

Class BaseClass

packages/core/src/__tests__/unit/mixin-target.unit.ts:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 describe('type definition', () => {
11 it('allows mixin to extend a base class', () => {
12 class BaseClass {
13 public baseProp = 'base';
14 public baseMethod() {
15 return 'base-method';
16 }
17 }
18
19 function MyMixin<T extends MixinTarget<BaseClass>>(superClass: T) {
20 return class extends superClass {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected