Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentNameResolver: (exp, source) => {
return exp.getName() === 'StyledComponentClass' && getDefaultExportForFile(source)
}
}
componentNameResolver: (exp, source) =>
exp.getName() === 'StyledComponentClass' &&
require('react-docgen-typescript').getDefaultExportForFile(source),
}
componentNameResolver: (exp, source) =>
exp.getName() === 'StyledComponentClass' &&
docgenTypeScript.getDefaultExportForFile(source),
}
componentNameResolver: (exp, source) => {
return require("react-docgen-typescript").getDefaultExportForFile(
source
);
}
}