fix(sql-prettify): corrected types
This commit is contained in:
parent
697aba64fd
commit
23f69190b5
@ -285,6 +285,7 @@
|
|||||||
"watchThrottled": true,
|
"watchThrottled": true,
|
||||||
"watchTriggerable": true,
|
"watchTriggerable": true,
|
||||||
"watchWithFilter": true,
|
"watchWithFilter": true,
|
||||||
"whenever": true
|
"whenever": true,
|
||||||
|
"toValue": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -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',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user