UNPKG

@omnia/tooling-composers

Version:

Provide tooling to work with manifest things.

28 lines (27 loc) 1.72 kB
import { IClientLoadableManifestProvider, ResourceManifest } from "./LoadableManifestRegistry"; import { ResourceBuildOptions, WebComponentOptions } from "./models/index"; import { WebComponentBundleManifest, ClientResolvableLoadRule, WebComponentDefinition } from '../../fx-models'; export declare class ComponentRegistration { componentOptions: WebComponentOptions; manifestPath: string; manifest: ResourceManifest; buildOptions: ResourceBuildOptions; definition: WebComponentDefinition; extendApiRules: Array<ClientResolvableLoadRule>; loadRules: Array<ClientResolvableLoadRule>; constructor(componentOptions: WebComponentOptions, manifestPath: string, manifest: ResourceManifest); } export declare class ComponentRegistry implements IClientLoadableManifestProvider { private static ComponentRegistrations; private static ComponentElements; static registerComponent: (manifest: ResourceManifest, componentOptions: WebComponentOptions) => void; static getComponentDefinition: (manifest: ResourceManifest) => WebComponentDefinition; static addComponentDefinition: (manifest: ResourceManifest, definition: WebComponentDefinition) => void; static addComponentBuildOptions: (manifest: ResourceManifest, buildOptions: ResourceBuildOptions) => void; static newCombinedRules: (manifest: ResourceManifest, rules: Array<ClientResolvableLoadRule>) => void; static getRegistrations: () => Array<ComponentRegistration>; static getComponentRegistrations: () => Array<ComponentRegistration>; getClientLoadableManifests: (currentServiceId: string) => Array<WebComponentBundleManifest>; clearState: () => void; private static ensureCorrectManifest; }