fix(sql-prettify): corrected types

This commit is contained in:
Corentin Thomasset 2023-08-21 18:27:51 +02:00
parent 697aba64fd
commit 23f69190b5
No known key found for this signature in database
GPG Key ID: DBD997E935996158
2 changed files with 5 additions and 4 deletions

View File

@ -285,6 +285,7 @@
"watchThrottled": true, "watchThrottled": true,
"watchTriggerable": true, "watchTriggerable": true,
"watchWithFilter": true, "watchWithFilter": true,
"whenever": true "whenever": true,
"toValue": true
} }
} }

View File

@ -1,11 +1,11 @@
<script setup lang="ts"> <script setup lang="ts">
import { type FormatFnOptions, format as formatSQL } from 'sql-formatter'; import { type FormatOptionsWithLanguage, format as formatSQL } from 'sql-formatter';
import TextareaCopyable from '@/components/TextareaCopyable.vue'; import TextareaCopyable from '@/components/TextareaCopyable.vue';
import { useStyleStore } from '@/stores/style.store'; import { useStyleStore } from '@/stores/style.store';
const inputElement = ref<HTMLElement>(); const inputElement = ref<HTMLElement>();
const styleStore = useStyleStore(); const styleStore = useStyleStore();
const config = reactive<Partial<FormatFnOptions>>({ const config = reactive<FormatOptionsWithLanguage>({
keywordCase: 'upper', keywordCase: 'upper',
useTabs: false, useTabs: false,
language: 'sql', language: 'sql',