moleculer-decorators
Version:
decorators for moleculer
16 lines (13 loc) • 398 B
text/typescript
import * as Moleculer from "moleculer";
import { CustomService } from "./CustomServiceFactory";
import { Action, Service } from "../../src";
()
export default class CustomTest extends CustomService {
()
public async testAction(_ctx: Moleculer.Context) {
return this.foo();
}
private created(): void {
this.logger.info("Successfully created!");
}
}