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,
"watchTriggerable": true,
"watchWithFilter": true,
"whenever": true
"whenever": true,
"toValue": true
}
}
}

View File

@ -1,11 +1,11 @@
<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 { useStyleStore } from '@/stores/style.store';
const inputElement = ref<HTMLElement>();
const styleStore = useStyleStore();
const config = reactive<Partial<FormatFnOptions>>({
const config = reactive<FormatOptionsWithLanguage>({
keywordCase: 'upper',
useTabs: false,
language: 'sql',