diff --git a/packages/core/src/di/injector_compatibility.ts b/packages/core/src/di/injector_compatibility.ts index 21d1709fce..fc30a8647a 100644 --- a/packages/core/src/di/injector_compatibility.ts +++ b/packages/core/src/di/injector_compatibility.ts @@ -109,6 +109,7 @@ export function injectInjectorOnly( * * @see inject * @codeGenApi + * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm. */ export function ɵɵinject(token: Type|InjectionToken): T; export function ɵɵinject(token: Type|InjectionToken, flags?: InjectFlags): T|null; diff --git a/packages/core/src/di/interface/defs.ts b/packages/core/src/di/interface/defs.ts index b1d05df5b3..8dba1ec240 100644 --- a/packages/core/src/di/interface/defs.ts +++ b/packages/core/src/di/interface/defs.ts @@ -22,9 +22,9 @@ import {ClassProvider, ConstructorProvider, ExistingProvider, FactoryProvider, S * `InjectorDef`, `NgModule`, or a special scope (e.g. `'root'`). A value of `null` indicates * that the injectable does not belong to any scope. * - * NOTE: This is a private type and should not be exported - * - * @publicApi + * @codeGenApi + * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm. + */ export interface ɵɵInjectableDef { /** @@ -65,7 +65,7 @@ export interface ɵɵInjectableDef { * * NOTE: This is a private type and should not be exported * - * @publicApi + * @codeGenApi */ export interface ɵɵInjectorDef { factory: () => T; @@ -137,6 +137,7 @@ export interface InjectorTypeWithProviders { * The factory can call `inject` to access the `Injector` and request injection of dependencies. * * @codeGenApi + * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm. */ export function ɵɵdefineInjectable(opts: { token: unknown, @@ -175,7 +176,7 @@ export const defineInjectable = ɵɵdefineInjectable; * whose providers will also be added to the injector. Locally provided types will override * providers from imports. * - * @publicApi + * @codeGenApi */ export function ɵɵdefineInjector(options: {factory: () => any, providers?: any[], imports?: any[]}): never { diff --git a/packages/core/src/sanitization/sanitization.ts b/packages/core/src/sanitization/sanitization.ts index a4a47cd022..b32c1e1c3e 100644 --- a/packages/core/src/sanitization/sanitization.ts +++ b/packages/core/src/sanitization/sanitization.ts @@ -32,7 +32,7 @@ import {_sanitizeUrl as _sanitizeUrl} from './url_sanitizer'; * @returns `html` string which is safe to display to user, because all of the dangerous javascript * and urls have been removed. * - * @publicApi + * @codeGenApi */ export function ɵɵsanitizeHtml(unsafeHtml: any): string { const sanitizer = getSanitizer(); @@ -54,7 +54,7 @@ export function ɵɵsanitizeHtml(unsafeHtml: any): string { * @param unsafeStyle untrusted `style`, typically from the user. * @returns `style` string which is safe to bind to the `style` properties. * - * @publicApi + * @codeGenApi */ export function ɵɵsanitizeStyle(unsafeStyle: any): string { const sanitizer = getSanitizer(); @@ -81,7 +81,7 @@ export function ɵɵsanitizeStyle(unsafeStyle: any): string { * @returns `url` string which is safe to bind to the `src` properties such as ``, because * all of the dangerous javascript has been removed. * - * @publicApi + * @codeGenApi */ export function ɵɵsanitizeUrl(unsafeUrl: any): string { const sanitizer = getSanitizer(); @@ -103,7 +103,7 @@ export function ɵɵsanitizeUrl(unsafeUrl: any): string { * @returns `url` string which is safe to bind to the `src` properties such as ``, because * only trusted `url`s have been allowed to pass. * - * @publicApi + * @codeGenApi */ export function ɵɵsanitizeResourceUrl(unsafeResourceUrl: any): string { const sanitizer = getSanitizer(); @@ -126,7 +126,7 @@ export function ɵɵsanitizeResourceUrl(unsafeResourceUrl: any): string { * @returns `url` string which is safe to bind to the `