UNPKG

@liferay/generator-js

Version:

Yeoman generators for Liferay DXP and Portal CE JavaScript projects.

29 lines (28 loc) 1.16 kB
/** * SPDX-FileCopyrightText: © 2017 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: LGPL-3.0-or-later */ /** * Set configuration to a given value (to be used from tests) * @param {object} config the forced config */ export declare function set(config: any): void; /** * Whether to run in batch mode (with no interaction with the user) * @return {boolean} true if all prompts must be answered with default values */ export declare function batchMode(): boolean; /** * Get the default answer value for a given prompt. * @param {string} namespace unique string identifying the calling context * @param {string} question name of property identifying the question * @param {*} defaultDefault default value is nothing is configured * @return {*} the default value for the answer */ export declare function getDefaultAnswer(namespace: any, question: any, defaultDefault?: any): unknown; /** * Returns the SDK version to use when generating projects. If a path is used it * it must point to the root folder of the SDK's lerna repo. * @return {string} the forced SDK version to use */ export declare function getSDKVersion(): string;