b64a276d4b
Ivy definition looks something like this: ``` class MyService { static ngInjectableDef = defineInjectable({ … }); } ``` Here the argument to `defineInjectable` is well known public contract which needs to be honored in backward compatible way between versions. The type of the return value of `defineInjectable` on the other hand is private and can change shape drastically between versions without effecting backwards compatibility of libraries publish to NPM. To our users it is effectively an opaque token. For this reson why declare the return value of `defineInjectable` as `never`. PR Close #23383 |
||
---|---|---|
.. | ||
BUILD.bazel | ||
bundle.golden_symbols.json | ||
index.ts | ||
treeshaking_spec.ts | ||
usage.ts |