Skip to content

Commit

Permalink
chore(ts): allow import .ts extension
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Nov 6, 2024
1 parent 8afb431 commit 6b08a99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/composables/useIsDarkTheme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"include": ["./src/**/*.ts"],
"exclude": ["./src/**/*.cy.ts"],
"compilerOptions": {
"allowImportingTsExtensions": true,
"allowSyntheticDefaultImports": true,
"moduleResolution": "Bundler",
"target": "ESNext",
Expand Down

0 comments on commit 6b08a99

Please sign in to comment.