@spartacus/core
Version:
Spartacus - the core framework
12 lines (11 loc) • 497 B
TypeScript
import { FacadeDescriptor } from './facade-descriptor';
/**
* Factory that will create proxy facade, which is a service that will expose
* methods and properties from a facade implemented in the lazy loaded module.
*
* Returned proxy facade will lazy load the feature and facade implementation
* at first method call or when first property observable will be subscribed.
*
* @param descriptor
*/
export declare function facadeFactory<T extends object>(descriptor: FacadeDescriptor<T>): T;