@repobuddy/storybook 0.11.3 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,4 +36,4 @@ export type StorybookBuiltInParams = Partial<BackgroundsParam | GlobalApiBackgro
36
36
  * }
37
37
  * ```
38
38
  */
39
- export declare function defineParameters<P extends Record<string, any>>(parameters: P & StorybookBuiltInParams): P & StorybookBuiltInParams;
39
+ export declare function defineParameters<P extends Record<string, any>>(param: P & StorybookBuiltInParams, ...rest: Array<StorybookBuiltInParams>): StorybookBuiltInParams;
@@ -27,6 +27,6 @@
27
27
  * }
28
28
  * ```
29
29
  */
30
- export function defineParameters(parameters) {
31
- return parameters;
30
+ export function defineParameters(param, ...rest) {
31
+ return rest.reduce((acc, param) => Object.assign(acc, param), param);
32
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repobuddy/storybook",
3
- "version": "0.11.3",
3
+ "version": "0.12.0",
4
4
  "description": "Storybook repo buddy",
5
5
  "keywords": [
6
6
  "storybook",
@@ -40,6 +40,9 @@ export type StorybookBuiltInParams = Partial<BackgroundsParam | GlobalApiBackgro
40
40
  * }
41
41
  * ```
42
42
  */
43
- export function defineParameters<P extends Record<string, any>>(parameters: P & StorybookBuiltInParams) {
44
- return parameters
43
+ export function defineParameters<P extends Record<string, any>>(
44
+ param: P & StorybookBuiltInParams,
45
+ ...rest: Array<StorybookBuiltInParams>
46
+ ) {
47
+ return rest.reduce((acc, param) => Object.assign(acc, param), param)
45
48
  }