refactor(core): remove deprecated OpaqueToken
(#18971)
BREAKING CHANGE: `OpaqueToken` has been removed as it was deprecated since v4. Use `InjectionToken` instead. PR Close #18971
This commit is contained in:

committed by
Miško Hevery

parent
36d37cc6ae
commit
3c4eef8a86
12
tools/public_api_guard/core/index.d.ts
vendored
12
tools/public_api_guard/core/index.d.ts
vendored
@ -465,8 +465,9 @@ export interface InjectDecorator {
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class InjectionToken<T> extends OpaqueToken {
|
||||
constructor(desc: string);
|
||||
export declare class InjectionToken<T> {
|
||||
protected _desc: string;
|
||||
constructor(_desc: string);
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
@ -661,13 +662,6 @@ export interface OnInit {
|
||||
ngOnInit(): void;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare class OpaqueToken {
|
||||
protected _desc: string;
|
||||
constructor(_desc: string);
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare const Optional: OptionalDecorator;
|
||||
|
||||
|
Reference in New Issue
Block a user