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.
1 parent 90d6fb8 commit bfe2187Copy full SHA for bfe2187
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