I have
interface PaginationModel { rowsPerPage: number, page: number }
type FilteringModel = Record<string, string>
type FilteringAndPaginationModel = Partial<PaginationModel> & FilteringModel
const obj: FilteringAndPaginationModel = { rowsPerPage: 1 }
This causes an issue when trying to use it, TS thinks that this rowsPerPage is supposed to be in the FilteringModel, but it really should be the most specific - PaginationModel. Is there a good way to fix this?