Skip to content

Commit fe92903

Browse files
committed
chore: fix types
1 parent ad9b669 commit fe92903

File tree

5 files changed

+434
-372
lines changed

5 files changed

+434
-372
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
"vue-tsc": "catalog:"
5959
},
6060
"resolutions": {
61-
"esbuild": "^0.23.1"
61+
"esbuild": "^0.23.1",
62+
"typescript": "catalog:",
63+
"vite": "catalog:"
6264
},
6365
"simple-git-hooks": {
6466
"pre-commit": "npx lint-staged"

packages/devtools-ui-kit/src/components/NSwitch.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
<script setup lang="ts">
2-
import { useVModel } from '@vueuse/core'
3-
4-
const props = withDefaults(
2+
withDefaults(
53
defineProps<{
6-
modelValue?: boolean
74
disabled?: boolean
85
}>(),
96
{
10-
modelValue: false,
117
disabled: false,
128
},
139
)
14-
const emit = defineEmits<{ (...args: any): void }>()
15-
const checked = useVModel(props, 'modelValue', emit, { passive: true })
10+
const checked = defineModel('modelValue', {
11+
type: Boolean,
12+
default: false,
13+
})
1614
</script>
1715

1816
<template>

packages/devtools-ui-kit/src/components/NTextInput.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ const props = withDefaults(
1818
},
1919
)
2020
21-
const emit = defineEmits<{ (...args: any): void }>()
21+
const emit = defineEmits<{
22+
(name: 'keydown', event: KeyboardEvent): void
23+
(name: 'keyup', event: KeyboardEvent): void
24+
(name: 'change', event: Event): void
25+
}>()
2226
const input = useVModel(props, 'modelValue', emit, { passive: true })
2327
</script>
2428

0 commit comments

Comments
 (0)