Fix tsc issues
This commit is contained in:
@ -11,9 +11,9 @@ export interface Suggestion {
|
||||
}
|
||||
|
||||
const props = defineProps<{
|
||||
text: String,
|
||||
id: String | undefined,
|
||||
model: String,
|
||||
text: string,
|
||||
id: string | undefined,
|
||||
model: string,
|
||||
type?: string | undefined,
|
||||
}>();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
const props = defineProps<{modelValue: boolean}>();
|
||||
const props = defineProps<{modelValue?: boolean}>();
|
||||
const emits = defineEmits<{
|
||||
(e: "update:modelValue", value: boolean): void
|
||||
}>();
|
||||
|
@ -1,11 +1,11 @@
|
||||
<script lang="ts" setup>
|
||||
import Input from './Input.vue';
|
||||
const props = defineProps<{
|
||||
modelValue: Date
|
||||
modelValue?: Date
|
||||
}>();
|
||||
const emit = defineEmits(['update:modelValue']);
|
||||
|
||||
function dateToYYYYMMDD(d: Date) : string {
|
||||
function dateToYYYYMMDD(d: Date | undefined) : string {
|
||||
if(d == null)
|
||||
return "";
|
||||
// alternative implementations in https://stackoverflow.com/q/23593052/1850609
|
||||
|
@ -1,5 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
const props = defineProps<{modelValue : number | string}>();
|
||||
const props = defineProps<{
|
||||
modelValue?: number | string
|
||||
}>();
|
||||
|
||||
const emits = defineEmits<{
|
||||
(e: "update:modelValue", value: number | string): void
|
||||
|
Reference in New Issue
Block a user