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",