Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor(storybook): type Storybook package path helper as string

Richie McIlroycebf249c559a
diff --git a/apps/storybook/.storybook/main.ts b/apps/storybook/.storybook/main.ts
index f9b8d5fb1..511c4fb04 100644
--- a/apps/storybook/.storybook/main.ts
+++ b/apps/storybook/.storybook/main.ts
@@ -5,7 +5,7 @@ import type { StorybookConfig } from "storybook-solidjs-vite";
* This function is used to resolve the absolute path of a package.
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
*/
-function getAbsolutePath(value: string): any {
+function getAbsolutePath(value: string): string {
return dirname(require.resolve(join(value, "package.json")));
}
const config: StorybookConfig = {