Unverified Commit 19176e36 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento Committed by GitHub

Merge pull request #38 from RocketChat/update-app-constructor-signature

[IMPROVE] Update created App class constructor signature
parents 8b3f0646 f9fe5b4b
......@@ -31,14 +31,15 @@ export class AppCreator {
private createMainTypeScriptFile(): void {
const toWrite =
`import {
IAppAccessors,
ILogger,
} from '@rocket.chat/apps-engine/definition/accessors';
import { App } from '@rocket.chat/apps-engine/definition/App';
import { IAppInfo } from '@rocket.chat/apps-engine/definition/metadata';
export class ${ pascalCase(this.fd.info.name) }App extends App {
constructor(info: IAppInfo, logger: ILogger) {
super(info, logger);
constructor(info: IAppInfo, logger: ILogger, accessors: IAppAccessors) {
super(info, logger, accessors);
}
}
`;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment