@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>>(
|
|
39
|
+
export declare function defineParameters<P extends Record<string, any>>(param: P & StorybookBuiltInParams, ...rest: Array<StorybookBuiltInParams>): StorybookBuiltInParams;
|
package/package.json
CHANGED
|
@@ -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>>(
|
|
44
|
-
|
|
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
|
}
|