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:
Jan Bader 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<{ const props = defineProps<{
text: String, text: string,
id: String | undefined, id: string | undefined,
model: String, model: string,
type?: string | undefined, type?: string | undefined,
}>(); }>();

View File

@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
const props = defineProps<{modelValue: boolean}>(); const props = defineProps<{modelValue?: boolean}>();
const emits = defineEmits<{ const emits = defineEmits<{
(e: "update:modelValue", value: boolean): void (e: "update:modelValue", value: boolean): void
}>(); }>();

View File

@ -1,11 +1,11 @@
<script lang="ts" setup> <script lang="ts" setup>
import Input from './Input.vue'; import Input from './Input.vue';
const props = defineProps<{ const props = defineProps<{
modelValue: Date modelValue?: Date
}>(); }>();
const emit = defineEmits(['update:modelValue']); const emit = defineEmits(['update:modelValue']);
function dateToYYYYMMDD(d: Date) : string { function dateToYYYYMMDD(d: Date | undefined) : string {
if(d == null) if(d == null)
return ""; return "";
// alternative implementations in https://stackoverflow.com/q/23593052/1850609 // alternative implementations in https://stackoverflow.com/q/23593052/1850609

View File

@ -1,5 +1,7 @@
<script lang="ts" setup> <script lang="ts" setup>
const props = defineProps<{modelValue : number | string}>(); const props = defineProps<{
modelValue?: number | string
}>();
const emits = defineEmits<{ const emits = defineEmits<{
(e: "update:modelValue", value: number | string): void (e: "update:modelValue", value: number | string): void

View File

@ -5,10 +5,11 @@ import TransactionRow from "../components/TransactionRow.vue";
import TransactionInputRow from "../components/TransactionInputRow.vue"; import TransactionInputRow from "../components/TransactionInputRow.vue";
import { useAccountStore } from "../stores/budget-account"; import { useAccountStore } from "../stores/budget-account";
import EditAccount from "../dialogs/EditAccount.vue"; import EditAccount from "../dialogs/EditAccount.vue";
import Button from "../components/Button.vue"; import Button from "../components/SimpleButton.vue";
import { useTransactionsStore } from "../stores/transactions"; import { useTransactionsStore } from "../stores/transactions";
import Modal from "../components/Modal.vue"; import Modal from "../components/Modal.vue";
import Input from "../components/Input.vue"; import Input from "../components/Input.vue";
import Checkbox from "../components/Checkbox.vue";
defineProps<{ defineProps<{
budgetid: string budgetid: string
@ -126,9 +127,8 @@ function createReconcilationTransaction() {
Amount Amount
</td> </td>
<td style="width: 80px;"> <td style="width: 80px;">
<Input <Checkbox
v-if="transactions.Reconciling" v-if="transactions.Reconciling"
type="checkbox"
@input="setReconciled" @input="setReconciled"
/> />
</td> </td>