Skip to content

Commit

Permalink
types: fix type error: Type 'PropType<xxx>' is not assignable to type…
Browse files Browse the repository at this point in the history
… 'PropType_2<any> | undefined'
  • Loading branch information
cloydlau committed Oct 11, 2024
1 parent 815d893 commit 1c03030
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const JsonEditorVue = defineComponent({
const modeComputed = ref()
watchEffect(() => {
modeComputed.value = conclude([props.mode, propsGlobal.mode], {
type: String as PropType<Mode>,
type: String,
})
jsonEditor.value?.updateProps({
mode: modeComputed.value || Mode.tree,
Expand All @@ -112,11 +112,11 @@ const JsonEditorVue = defineComponent({

const debounceComputed = computed(() => {
return conclude([props.debounce, propsGlobal.debounce, 300], {
type: Number as PropType<number>,
type: Number,
})
})
const stringifiedComputed = computed(() => conclude([props.stringified, propsGlobal.stringified, true], {
type: Boolean as PropType<boolean>,
type: Boolean,
}))
let parse = destr

Expand Down

0 comments on commit 1c03030

Please sign in to comment.