import {
AnonymousConsentsConfig,
AsmConfig,
AuthConfig,
CartConfig,
CmsConfig,
ExternalRoutesConfig,
GlobalMessageConfig,
I18nConfig,
KymaConfig,
OccConfig,
PersonalizationConfig,
RoutingConfig,
SiteContextConfig,
StateConfig,
StoreFinderConfig,
} from '@spartacus/core';
import { CheckoutConfig } from './cms-components/checkout/config/checkout-config';
import { IconConfig } from './cms-components/misc/icon/icon.model';
import { QualtricsConfig } from './cms-components/misc/qualtrics/config/qualtrics-config';
import { PWAModuleConfig } from './cms-structure/pwa/pwa.module-config';
import { FeatureToggles } from './feature-toggles';
import { SkipLinkConfig } from './layout/a11y/skip-link/config/index';
import { LayoutConfig } from './layout/config/layout-config';
import { DirectionConfig } from './layout/direction/config/direction.config';
import { PaginationConfig } from './shared/components/list-navigation/pagination/index';
import { MediaConfig } from './shared/components/media/media.config';
import { ViewConfig } from './shared/config/view-config';
export type StorefrontConfig =
| AnonymousConsentsConfig
| AuthConfig
| CmsConfig
| OccConfig
| QualtricsConfig
| StateConfig
| PWAModuleConfig
| SiteContextConfig
| LayoutConfig
| DirectionConfig
| MediaConfig
| RoutingConfig
| I18nConfig
| PersonalizationConfig
| IconConfig
| CheckoutConfig
| KymaConfig
| GlobalMessageConfig
| ExternalRoutesConfig
| ViewConfig
| FeatureToggles
| AsmConfig
| SkipLinkConfig
| PaginationConfig
| StoreFinderConfig
| CartConfig;
众多config类型的一个composition,作为B2cStorefrontModule.withConfig的输入参数类型,允许partner复写默认配置条目:
强类型,不允许用户自定义新的配置名称:
export abstract class AuthConfig extends OccConfig {
authentication?: {
client_id?: string;
client_secret?: string;
};
}
复写已存在的属性没问题:
网友评论