angular/packages/core/src/di
Kristiyan Kostadinov f9ede9ec98 fix(core): ensure definitions compile
Includes the following changes to make sure the definitions for injectable compiler:
1. The types for the `factory` function now include the `parent` parameter.
2. `ɵɵFactoryDeclaration` is now defined as a function. We need this since the provider definition gets passed into the inejctable definition by reference.
3. `ɵɵdefineInjectable`, `ɵɵdefineNgModule` and `ɵɵdefinePipe` now return the typed definition, rather than `unknown`. This aligns with what we do for components and directives.
2026-03-10 09:58:18 -07:00
..
interface fix(core): ensure definitions compile 2026-03-10 09:58:18 -07:00
jit refactor(common): Removes unused imports to clean up dependencies 2025-11-06 08:35:28 -08:00
contextual.ts docs: Adds links to relevant guides for APIs in core package 2025-11-17 08:47:35 -08:00
create_injector.ts refactor(core): guards stringify calls with ngDevMode 2026-02-20 13:24:28 -08:00
forward_ref.ts refactor(core): guards stringify calls with ngDevMode 2026-02-20 13:24:28 -08:00
host_attribute_token.ts docs: add documentation for HostAttributeToken 2025-11-17 08:46:59 -08:00
host_tag_name_token.ts refactor(core): correct all typeof ngDevMode comparison patterns introduced by #63875 2025-12-08 10:30:01 -08:00
index.ts refactor(core): remove the deprecated ImportedNgModuleProviders type. (#63277) 2025-08-22 11:22:22 -07:00
initializer_token.ts refactor(core): correct all typeof ngDevMode comparison patterns introduced by #63875 2025-12-08 10:30:01 -08:00
inject_switch.ts refactor(core): conditionally include debug names based on ngDevMode 2025-12-16 09:37:38 -08:00
injectable.ts refactor(core): add dedicated deprecated signatures for providedIn: any / NgModule. 2025-12-09 10:38:09 -08:00
injection_token.ts fix(core): avoid false-positive deprecation when using InjectionToken with factory only 2025-12-11 11:20:11 -08:00
injector.ts docs: Adds links to relevant guides for APIs in core package 2025-11-17 08:47:35 -08:00
injector_compatibility.ts refactor(core): Remove unsued properties in differ factories 2026-01-29 12:06:32 -08:00
injector_marker.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
injector_token.ts refactor(core): correct all typeof ngDevMode comparison patterns introduced by #63875 2025-12-08 10:30:01 -08:00
internal_tokens.ts refactor(core): correct all typeof ngDevMode comparison patterns introduced by #63875 2025-12-08 10:30:01 -08:00
metadata.ts docs: Fixes DI guide reference missing ')' in see tag (#64457) 2025-10-16 17:34:17 +00:00
metadata_attr.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
null_injector.ts refactor(core): include DI path into cyclic dependency error message (#50902) 2025-07-10 10:35:12 -07:00
provider_collection.ts docs: reword docs on standalone. 2026-01-28 18:16:54 +00:00
provider_token.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
r3_injector.ts refactor(core): guards stringify calls with ngDevMode 2026-02-20 13:24:28 -08:00
scope.ts refactor(core): correct all typeof ngDevMode comparison patterns introduced by #63875 2025-12-08 10:30:01 -08:00