mirror of
https://github.com/bitwarden/jslib
synced 2025-12-15 15:53:51 +00:00
Apply prettier
This commit is contained in:
@@ -1,15 +1,10 @@
|
||||
import {
|
||||
InjectFlags,
|
||||
InjectionToken,
|
||||
Injector,
|
||||
Type
|
||||
} from '@angular/core';
|
||||
import { InjectFlags, InjectionToken, Injector, Type } from "@angular/core";
|
||||
|
||||
export class ModalInjector implements Injector {
|
||||
constructor(private _parentInjector: Injector, private _additionalTokens: WeakMap<any, any>) {}
|
||||
constructor(private _parentInjector: Injector, private _additionalTokens: WeakMap<any, any>) {}
|
||||
|
||||
get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
||||
get(token: any, notFoundValue?: any, flags?: any) {
|
||||
return this._additionalTokens.get(token) ?? this._parentInjector.get<any>(token, notFoundValue);
|
||||
}
|
||||
get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
||||
get(token: any, notFoundValue?: any, flags?: any) {
|
||||
return this._additionalTokens.get(token) ?? this._parentInjector.get<any>(token, notFoundValue);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user