From 6b08a99b1f45a67d1a99037ea104002f067daf78 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Wed, 6 Nov 2024 12:39:00 +0100 Subject: [PATCH] chore(ts): allow import .ts extension Signed-off-by: Grigorii K. Shartsev --- docs/composables/useIsDarkTheme.md | 2 +- tsconfig.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/composables/useIsDarkTheme.md b/docs/composables/useIsDarkTheme.md index 0e73703623..7809adba67 100644 --- a/docs/composables/useIsDarkTheme.md +++ b/docs/composables/useIsDarkTheme.md @@ -50,7 +50,7 @@ export default { const isDarkTheme = useIsDarkTheme() // For documentation only. Do not use in production. - function switchTheme { + function switchTheme() { if (isDarkTheme.value) { document.body.setAttribute('data-theme-light', '') document.body.removeAttribute('data-theme-dark') diff --git a/tsconfig.json b/tsconfig.json index 90201cee16..62fd35358a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "include": ["./src/**/*.ts"], "exclude": ["./src/**/*.cy.ts"], "compilerOptions": { + "allowImportingTsExtensions": true, "allowSyntheticDefaultImports": true, "moduleResolution": "Bundler", "target": "ESNext",