export const OtherPropertyRow = type.merge(
{
address: 'string > 0',
value: 'number',
mortgage: 'number',
},
type({
includedHow: "'Party1'",
})
.or({
includedHow: "'Party2'",
})
.or({
includedHow: "'Other'",
arrangement: 'string',
}),
type({
purpose: "'InvestmentProperty'",
})
.or({
purpose: "'BachOrHolidayHouse'",
})
.or({
purpose: "'Other'",
otherPurpose: 'string',
}),
);
export const OtherPropertyRow = type.merge(
{
address: 'string > 0',
value: 'number',
mortgage: 'number',
},
type({
includedHow: "'Party1'",
})
.or({
includedHow: "'Party2'",
})
.or({
includedHow: "'Other'",
arrangement: 'string',
}),
type({
purpose: "'InvestmentProperty'",
})
.or({
purpose: "'BachOrHolidayHouse'",
})
.or({
purpose: "'Other'",
otherPurpose: 'string',
}),
);