From 9e0ec0495324c9fe054751752da94620fa4861f4 Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Tue, 21 Jan 2025 08:21:38 +0100 Subject: [PATCH] refactor: remove unused ComponentsSaveOptions interface and clean up SaveComponentsOptions - Deleted the `ComponentsSaveOptions` interface as it was no longer needed. - Removed the `space` property from the `SaveComponentsOptions` interface to simplify its structure. - This cleanup enhances code maintainability and reduces complexity in the components command. --- src/commands/components/constants.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/commands/components/constants.ts b/src/commands/components/constants.ts index c6efd06..f3c899c 100644 --- a/src/commands/components/constants.ts +++ b/src/commands/components/constants.ts @@ -30,13 +30,6 @@ export interface SpaceComponentGroup { parent_uuid: string } -export interface ComponentsSaveOptions { - path?: string - filename?: string - separateFiles?: boolean - suffix?: string -} - export interface SpaceComponentPreset { id: number name: string @@ -87,11 +80,6 @@ export interface SaveComponentsOptions extends PullComponentsOptions { * @default `.storyblok/components` */ path?: string - /** - * The space ID. - * @required true - */ - space: string /** * The regex filter to apply to the components before pushing. * @default `.*`