@microsoft/kiota
Version:
npm package exposing Kiota CLI functionality to TypeScript
20 lines (19 loc) • 1.06 kB
TypeScript
import { KiotaLogEntry } from "..";
export interface UpdateClientsConfiguration {
cleanOutput: boolean;
clearCache: boolean;
workspacePath: string;
}
/**
* Updates the clients by connecting to Kiota and sending a request to update.
*
* @param {UpdateClientsConfiguration} config - The configuration object containing the following properties:
* @param {boolean} config.cleanOutput - Whether to clean the output directory before updating.
* @param {boolean} config.clearCache - Whether to clear the cache before updating.
* @param {string} config.workspacePath - The path to the workspace where the clients are located.
*
* @returns {Promise<KiotaLogEntry[] | undefined>} A promise that resolves to an array of Kiota log entries if the update is successful, or undefined if there is an error.
*
* @throws {Error} Throws an error if the result of the update is an instance of Error.
*/
export declare function updateClients({ cleanOutput, clearCache, workspacePath }: UpdateClientsConfiguration): Promise<KiotaLogEntry[] | undefined>;