Files
brewman/overlord/src/app/settings/lock-information-resolver.service.ts
T
tanshu 2972203148 Removed the use of any and enabled the rule in eslint.
Now according to me the conversion is final.
Testing is required.
2020-11-24 08:03:43 +05:30

18 lines
477 B
TypeScript

import { Injectable } from '@angular/core';
import { Resolve } from '@angular/router';
import { Observable } from 'rxjs/internal/Observable';
import { LockInfo } from './lock-info';
import { SettingsService } from './settings.service';
@Injectable({
providedIn: 'root',
})
export class LockInformationResolver implements Resolve<LockInfo> {
constructor(private ser: SettingsService) {}
resolve(): Observable<LockInfo> {
return this.ser.getLockInformation();
}
}