Improve types in shared-components storybook

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2026-01-21 14:05:04 +00:00
parent deb34adf20
commit c95ddcf58b
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D
4 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import { WithTooltip, IconButton, TooltipLinkList } from "storybook/internal/com
import React from "react";
import { GlobeIcon } from "@storybook/icons";
const languages = JSON.parse(process.env.STORYBOOK_LANGUAGES);
const languages: string[] = JSON.parse(process.env.STORYBOOK_LANGUAGES!);
/**
* Returns the title of a language in the user's locale.

View File

@ -6,7 +6,6 @@ Please see LICENSE files in the repository root for full details.
*/
import type { StorybookConfig } from "@storybook/react-vite";
import path from "node:path";
import fs from "node:fs";
import { nodePolyfills } from "vite-plugin-node-polyfills";
import { mergeConfig } from "vite";

View File

@ -19,6 +19,6 @@
"jest-matrix-react": ["./src/test/utils/jest-matrix-react"]
}
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"include": ["./src/**/*.ts", "./src/**/*.tsx", ".storybook/*.ts", ".storybook/*.tsx"],
"references": [{ "path": "./tsconfig.node.json" }]
}

View File

@ -4,7 +4,9 @@
"target": "ESNext",
"module": "esnext",
"moduleResolution": "bundler",
"esModuleInterop": true,
"strict": true,
"types": [],
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]