@spartacus/storefront
Version:
Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.
28 lines (27 loc) • 1.06 kB
TypeScript
import { OnDestroy } from '@angular/core';
import { Observable, Subscription } from 'rxjs';
import { SchemaBuilder } from './builders/schema.interface';
import { JsonLdScriptFactory } from './json-ld-script.factory';
import * as i0 from "@angular/core";
/**
* Factory service that is used to build the structured data for
* all configured schema builders.
*/
export declare class StructuredDataFactory implements OnDestroy {
private scriptBuilder;
private builders;
constructor(scriptBuilder: JsonLdScriptFactory, builders: SchemaBuilder[]);
protected subscription: Subscription;
/**
* Initiates the build of structured data by collecting all schema
* builders.
*/
build(): void;
/**
* Collects all schema builders and observe their structured data.
*/
protected collectSchemas(): Observable<any[]>;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<StructuredDataFactory, [null, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDeclaration<StructuredDataFactory>;
}