Skip to content

Commit

Permalink
refactor: remove unused ComponentsSaveOptions interface and clean up …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
alvarosabu committed Jan 21, 2025
1 parent 941dd77 commit 9e0ec04
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/commands/components/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 `.*`
Expand Down

0 comments on commit 9e0ec04

Please sign in to comment.