Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const MemberWithRole = role => Record({
role,
fio: Fio
}).And(
Partial({
dependant: Boolean.Or(Void)
})
)
const Spouse = MemberWithRole(Literal('spouse'))