@communities-webruntime/services
Version:
If you would like to run Lightning Web Runtime without the CLI, we expose some of our programmatic APIs available in Node.js. If you're looking for the CLI documentation [you can find that here](https://www.npmjs.com/package/@communities-webruntime/cli).
42 lines • 1.37 kB
TypeScript
/**
* Copyright (c) 2019, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
import { AddressableService, RequestOutputTypes } from '@webruntime/api';
/**
* Addressable service responsible for generating view modules
* from the Communities template metadata
*/
export declare class ViewService extends AddressableService {
get mappings(): any;
constructor();
initialize(): Promise<void>;
request(specifier: any, pivots: any, { compilerConfig }: {
compilerConfig: any;
}): Promise<{
type: RequestOutputTypes;
specifier: any;
success: boolean;
diagnostics: {
code: string;
message: string;
level: number;
}[];
resource?: undefined;
metadata?: undefined;
} | {
type: RequestOutputTypes;
specifier: any;
resource: import("@lwc/compiler").CompileResult | undefined;
metadata: {
dependencies: string[];
dynamicImports: import("@webruntime/compiler").DynamicImport[];
};
success: boolean;
diagnostics: import("@lwc/errors").CompilerDiagnostic[];
}>;
toSpecifier(url: any): string;
}
//# sourceMappingURL=view-service.d.ts.map