Skip to content

Commit 1c03030

Browse files
committed
types: fix type error: Type 'PropType<xxx>' is not assignable to type 'PropType_2<any> | undefined'
1 parent 815d893 commit 1c03030

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const JsonEditorVue = defineComponent({
9696
const modeComputed = ref()
9797
watchEffect(() => {
9898
modeComputed.value = conclude([props.mode, propsGlobal.mode], {
99-
type: String as PropType<Mode>,
99+
type: String,
100100
})
101101
jsonEditor.value?.updateProps({
102102
mode: modeComputed.value || Mode.tree,
@@ -112,11 +112,11 @@ const JsonEditorVue = defineComponent({
112112

113113
const debounceComputed = computed(() => {
114114
return conclude([props.debounce, propsGlobal.debounce, 300], {
115-
type: Number as PropType<number>,
115+
type: Number,
116116
})
117117
})
118118
const stringifiedComputed = computed(() => conclude([props.stringified, propsGlobal.stringified, true], {
119-
type: Boolean as PropType<boolean>,
119+
type: Boolean,
120120
}))
121121
let parse = destr
122122

0 commit comments

Comments
 (0)