@foxpage/foxpage-node-sdk
Version:
foxpage node sdk
20 lines (19 loc) • 601 B
TypeScript
import { FoxpageRequestOptions } from '@foxpage/foxpage-types';
/**
* render module to html
* @param fileId
* @param locale
* @param appId
* @param opt
* @returns
*/
export declare const renderModuleToHtml: (fileId: string, locale: string | undefined, appId: string, opt: FoxpageRequestOptions & {
moduleIds: string[];
}) => Promise<{
html: string | null;
dsl: import("@foxpage/foxpage-types").ContextPage | undefined;
vars: Record<string, unknown> & {
has?: ((key: string) => boolean) | undefined;
};
contextValue: import("@foxpage/foxpage-types").Context;
}>;