Skip to content

Commit

Permalink
Fixing types
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Oct 18, 2022
1 parent 47f1ca9 commit c87baee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ interface FixtureStartDeps {
}

export class FixturePlugin implements Plugin<void, void, FixtureSetupDeps, FixtureStartDeps> {
private router: IRouter;
private router?: IRouter;

public setup(core: CoreSetup<FixtureStartDeps>, { features, actions }: FixtureSetupDeps) {
// this action is specifically NOT enabled in ../../config.ts
Expand Down Expand Up @@ -150,7 +150,7 @@ export class FixturePlugin implements Plugin<void, void, FixtureSetupDeps, Fixtu
}

public start(core: CoreStart, { actions }: FixtureStartDeps) {
initUnsecuredAction(this.router, actions);
initUnsecuredAction(this.router!, actions);
}
public stop() {}
}

0 comments on commit c87baee

Please sign in to comment.