A local-first personal finance app
TypeScript: make component-library strict ts compliant (almost) (#6026)
Matiss Janis Aboltins1e6fde571e1f
diff --git a/packages/component-library/src/icons/index-template.ts b/packages/component-library/src/icons/index-template.tsindex ee03c69256..2954eb725a 100644--- a/packages/component-library/src/icons/index-template.ts+++ b/packages/component-library/src/icons/index-template.ts@@ -1,7 +1,6 @@-// @ts-strict-ignoreimport path from 'path';-function indexTemplate(filePaths) {+function indexTemplate(filePaths: { path: string }[]) {const exportEntries = filePaths.map(({ path: filePath }) => {const basename = path.basename(filePath, path.extname(filePath));const exportName = `Svg${basename}`;diff --git a/packages/component-library/src/icons/template.ts b/packages/component-library/src/icons/template.tsindex ae0f48cdd3..8d50f563c6 100644--- a/packages/component-library/src/icons/template.ts+++ b/packages/component-library/src/icons/template.ts@@ -1,5 +1,6 @@-// @ts-strict-ignore-const tmpl = ({ imports, interfaces, componentName, props, jsx }, { tpl }) => {+import { type Options } from '@svgr/babel-preset';++const tmpl: Options['template'] = ({ imports, interfaces, componentName, props, jsx }, { tpl }) => {return tpl`${imports};diff --git a/upcoming-release-notes/6026.md b/upcoming-release-notes/6026.mdnew file mode 100644index 0000000000..5aafdadfc7--- /dev/null+++ b/upcoming-release-notes/6026.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [MatissJanis]+---++TypeScript: make component-library strict ts compliant (almost)