We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 030d41c + bfe2187 commit 41d9e57Copy full SHA for 41d9e57
packages/visual-service/src/storybook/utils.ts
@@ -126,7 +126,10 @@ export async function getStoriesJson(url: string): Promise<Stories> {
126
/**
127
* Get arg value from the process.argv
128
*/
129
-export function getArgvValue(argName: string, parseFunc: (value: string) => any): any {
+export function getArgvValue<ParseFuncReturnType>(
130
+ argName: string,
131
+ parseFunc: (value: string) => ParseFuncReturnType
132
+) {
133
const argWithEqual = argName + '='
134
const argv = process.argv
135
0 commit comments