OmitReadOnly can be created using https://stackoverflow.com/a/49579497/27658. Alternatively, OmitWriteOnly<PetDto> = Omit<PetDto, "foo" | "bar" | "baz"> can be generated (but the LHS syntax is probably to possible).
If this is done, the test data generator must also be updated to support Full, Input, Output (and perhaps MinimalOutput and MinimalInput) variants as well.
Motivating example with
OmitReadOnly
andOmitWriteOnly
:OmitReadOnly can be created using https://stackoverflow.com/a/49579497/27658. Alternatively,
OmitWriteOnly<PetDto> = Omit<PetDto, "foo" | "bar" | "baz">
can be generated (but the LHS syntax is probably to possible).If this is done, the test data generator must also be updated to support Full, Input, Output (and perhaps MinimalOutput and MinimalInput) variants as well.