UNPKG

@kaspersky/dev-tools

Version:

Development tools and configs for Babel, ESLint and TypeScript

23 lines (22 loc) 841 B
export = buildUi; /** * Processes raw forms data produced by UI Builder to application consumable forms map * @param { object } props * @param { { [formId: string]: object } } props.forms - Raw forms map produced by UI Builder * @param { { [formId: string]: object } } props.helpTopics - FormID to help-data mapping * @param { string[] } props.buildTypes - Build types allowed to pass form processing * @param { boolean } props.devMode - If true, additional data is passed to forms * @returns { { [formId: string]: object } } Application consumable forms map */ declare function buildUi({ forms, helpTopics, buildTypes, devMode }: { forms: { [formId: string]: object; }; helpTopics: { [formId: string]: object; }; buildTypes: string[]; devMode: boolean; }): { [formId: string]: object; };