UNPKG

@acorel/contentful-integration

Version:
30 lines (26 loc) 643 B
import {Injectable} from "@angular/core"; import {Config} from "@spartacus/core"; import {CmsComponentType} from "@acorel/graphql-integration"; export abstract class ContentfulComponentConfig { component?: CmsComponentType } @Injectable({ providedIn: 'root', useExisting: Config, }) export abstract class ContentfulConfig { contentful?: { previewUrl: string, backend: { url: string; space: string; accessToken: string; }, components?: { [componentType: string]: ContentfulComponentConfig } }; } declare module '@spartacus/core' { export interface Config extends ContentfulConfig {} }