Match `.in` with loose type
In docs there is example
Its work good because match know how rest of the type will look like, so we have acess to oneValue or twoValue
But when i change it to:
Typescript say that only id exist
Is this an issue, or intentional?
Probably second one, because i need to make to get anything else then never from typescript
Then what should I use as alternative?
Its work good because match know how rest of the type will look like, so we have acess to oneValue or twoValue
But when i change it to:
Typescript say that only id exist
Is this an issue, or intentional?
Probably second one, because i need to make to get anything else then never from typescript
Then what should I use as alternative?