Skip to content

Commit

Permalink
fix(common): export the IMAGE_CONFIG token (angular#48051)
Browse files Browse the repository at this point in the history
The token introduced in 4fde292 was not exported publicly.

PR Close angular#48051
  • Loading branch information
cexbrayat authored and RGunning committed Apr 13, 2023
1 parent 79f1be5 commit b671597
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions goldens/public-api/common/index.md
Expand Up @@ -258,9 +258,17 @@ export class I18nSelectPipe implements PipeTransform {
static ɵpipe: i0.ɵɵPipeDeclaration<I18nSelectPipe, "i18nSelect", true>;
}

// @public
export const IMAGE_CONFIG: InjectionToken<ImageConfig>;

// @public
export const IMAGE_LOADER: InjectionToken<ImageLoader>;

// @public
export type ImageConfig = {
breakpoints?: number[];
};

// @public
export type ImageLoader = (config: ImageLoaderConfig) => string;

Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/common.ts
Expand Up @@ -27,4 +27,4 @@ export {PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPL
export {VERSION} from './version';
export {ViewportScroller, NullViewportScroller as ɵNullViewportScroller} from './viewport_scroller';
export {XhrFactory} from './xhr';
export {IMAGE_LOADER, ImageLoader, ImageLoaderConfig, NgOptimizedImage, PRECONNECT_CHECK_BLOCKLIST, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader} from './directives/ng_optimized_image';
export {IMAGE_CONFIG, ImageConfig, IMAGE_LOADER, ImageLoader, ImageLoaderConfig, NgOptimizedImage, PRECONNECT_CHECK_BLOCKLIST, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader} from './directives/ng_optimized_image';

0 comments on commit b671597

Please sign in to comment.