graycoreio/daffodil

View on GitHub
libs/driver/in-memory/src/config/token.ts

Summary

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

import { DAFF_IN_MEMORY_DRIVER_CONFIG_DEFAULT } from './default';
import { DaffInMemoryDriverConfig } from './type';

export const {
  token: DAFF_IN_MEMORY_DRIVER_CONFIG,
  /**
   * Provider function for {@link DAFF_IN_MEMORY_DRIVER_CONFIG}.
   */
  provider: provideDaffInMemoryDriverConfig,
} = createConfigInjectionToken<DaffInMemoryDriverConfig>(DAFF_IN_MEMORY_DRIVER_CONFIG_DEFAULT, 'DAFF_IN_MEMORY_DRIVER_CONFIG');