Fix tsc issues
This commit is contained in:
parent
eae196aa69
commit
bfa67578cf
@ -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
|
||||
|
@ -5,10 +5,11 @@ import TransactionRow from "../components/TransactionRow.vue";
|
||||
import TransactionInputRow from "../components/TransactionInputRow.vue";
|
||||
import { useAccountStore } from "../stores/budget-account";
|
||||
import EditAccount from "../dialogs/EditAccount.vue";
|
||||
import Button from "../components/Button.vue";
|
||||
import Button from "../components/SimpleButton.vue";
|
||||
import { useTransactionsStore } from "../stores/transactions";
|
||||
import Modal from "../components/Modal.vue";
|
||||
import Input from "../components/Input.vue";
|
||||
import Checkbox from "../components/Checkbox.vue";
|
||||
|
||||
defineProps<{
|
||||
budgetid: string
|
||||
@ -126,9 +127,8 @@ function createReconcilationTransaction() {
|
||||
Amount
|
||||
</td>
|
||||
<td style="width: 80px;">
|
||||
<Input
|
||||
<Checkbox
|
||||
v-if="transactions.Reconciling"
|
||||
type="checkbox"
|
||||
@input="setReconciled"
|
||||
/>
|
||||
</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user