graycoreio/daffodil

View on GitHub
libs/design/media-gallery/src/helpers/media-gallery-token.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { createSingleInjectionToken } from '@daffodil/core';

import { DaffMediaGalleryRegistration } from './media-gallery-registration.interface';

export const {
  token: DAFF_MEDIA_GALLERY_TOKEN,
  /**
   * Provider function for {@link DAFF_MEDIA_GALLERY_TOKEN}.
   */
  provider: provideDaffMediaGalleryToken,
} = createSingleInjectionToken<DaffMediaGalleryRegistration>('DAFF_MEDIA_GALLERY_TOKEN');