fix: typings

This commit is contained in:
Braks
2021-10-22 14:29:27 +02:00
parent cb96b1ab00
commit 6ec8258f33
50 changed files with 165 additions and 142 deletions
+6 -1
View File
@@ -1,5 +1,10 @@
<script lang="ts" setup>
const props = defineProps<{ nodeStyles: Record<string, any> }>()
import { NodeProps } from '~/index'
interface NodeAProps extends NodeProps {
nodeStyles: Record<string, any>
}
const props = defineProps<NodeAProps>()
</script>
<template>
<div :style="props.nodeStyles">A</div>
+6 -1
View File
@@ -1,5 +1,10 @@
<script lang="ts" setup>
const props = defineProps<{ nodeStyles: Record<string, any> }>()
import { NodeProps } from '~/index'
interface NodeBPro extends NodeProps {
nodeStyles: Record<string, any>
}
const props = defineProps<NodeBPro>()
</script>
<template>
<div :style="props.nodeStyles">B</div>