diff --git a/code/core/src/csf-tools/CsfFile.ts b/code/core/src/csf-tools/CsfFile.ts index 153bf8e0a1f3..2ab3bfa27408 100644 --- a/code/core/src/csf-tools/CsfFile.ts +++ b/code/core/src/csf-tools/CsfFile.ts @@ -601,7 +601,7 @@ export const loadCsf = (code: string, options: CsfOptions) => { export const formatCsf = ( csf: CsfFile, - options: GeneratorOptions & { inputSourceMap?: string } = { sourceMaps: false }, + options: GeneratorOptions & { inputSourceMap?: any } = { sourceMaps: false }, code?: string ) => { const result = generate(csf._ast, options, code);