graycoreio/daffodil

View on GitHub
libs/cart/routing/src/config/resolution/config.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * An object that describes the resolution configuration of the cart state package.
 */
export interface DaffCartRoutingResolutionConfiguration {
  /**
   * When Daffodil fails to resolve a cart, you should navigate your users to
   * a page that is outside the scope of resolution. The `failedResolutionPath` allows you
   * to control where to navigate your users to when resolution fails.
   */
  failedResolutionPath: string;
};

/**
 * The default values of the resolution slice of the cart state configuration.
 */
export const daffCartRoutingResolutionConfigurationDefault: DaffCartRoutingResolutionConfiguration = {
  failedResolutionPath: null,
};