Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
fix(core): Deprecate TestBed.get(...):any #29290
Adds an overload to TestBed.get making parameters strongly typed and
Please check if your PR fulfills the following requirements:
What kind of change does this PR introduce?
What is the current behavior?
get(token: any, default?: any): any
Issue Number: #26491
What is the new behavior?
"Same" signature as
get(token: InjetionToken<T>|Type<T>, default?: T, flags?: InjectorFlags): any
(Instead of returning
Does this PR introduce a breaking change?
Note that the return type is still
Note: At head these tests were already failing -