@jungvonmatt/sb-migrate
Version:
CLI tool for managing Storyblok schema and content migrations
19 lines (18 loc) • 916 B
TypeScript
import { RunMigrationOptions } from "../../utils/migration";
/**
* Handles the deletion of a component group based on the provided migration schema.
* This function performs the following operations:
* 1. Checks if the operation is a dry run
* 2. Retrieves existing component groups
* 3. Deletes the specified component group
* 4. Logs the deletion status
*
* @param {Object} migration - The migration object containing the component group ID
* @param {number | string} migration.id - The ID of the component group to delete
* @param {RunMigrationOptions} options - Configuration options for the migration
* @param {boolean} [options.isDryrun] - Whether to perform a dry run without making actual changes
* @throws {Error} If the component group deletion fails
*/
export declare const handleDeleteComponentGroup: (migration: {
id: number | string;
}, options: RunMigrationOptions) => Promise<void>;