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:
Olivier Combe
2017-08-31 10:56:26 +02:00
committed by Miško Hevery
parent 36d37cc6ae
commit 3c4eef8a86
10 changed files with 19 additions and 65 deletions

View File

@ -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;