This is the first pass of ESLint on the codebase. ESLint formatting is less strict when it comes to line-length and line-breaks then dprint/biome, so if you see formatting that you don't like... fix it! It shouldn't require a configuration change. - This should merge clean into master (when the time comes). - This will not merge clean into `3.9.0-DEV`, but the conflicts aren't that bad.
21 lines
500 B
TypeScript
21 lines
500 B
TypeScript
import { inject, injectable } from "tsyringe";
|
|
import { PresetController } from "@spt-aki/controllers/PresetController";
|
|
import { OnLoad } from "@spt-aki/di/OnLoad";
|
|
|
|
@injectable()
|
|
export class PresetCallbacks implements OnLoad
|
|
{
|
|
constructor(@inject("PresetController") protected presetController: PresetController)
|
|
{}
|
|
|
|
public async onLoad(): Promise<void>
|
|
{
|
|
this.presetController.initialize();
|
|
}
|
|
|
|
public getRoute(): string
|
|
{
|
|
return "aki-presets";
|
|
}
|
|
}
|