Fix tsc issues
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
2022-03-15 20:04:01 +00:00
parent eae196aa69
commit bfa67578cf
5 changed files with 12 additions and 10 deletions

View File

@ -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,
}>();

View File

@ -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
}>();

View File

@ -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

View File

@ -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