defineInjectable
已弃用: in v8, delete after v10. This API should be used only by generated code, and that code should now use ɵɵdefineInjectable instead.
在 v8 中弃用,在 v10 之后删除。此 API 仅应由生成的代码使用,并且该代码现在应改用 ɵɵdefineInjectable。
const defineInjectable: <T>(opts: { token: unknown; providedIn?: Type<any> | "root" | "platform" | "any"; factory: () => T; }) => unknown;