When adding the sortOrder
property to the GameQuery
interface, the option of null
is not included in its data type, unlike the genre
and platform
properties which do include the option to be null
.
export interface GameQuery {
genre: Genre | null;
platform: Platform | null;
sortOrder: string;
searchText: string;
}
why is null not included?
#React18forBeginners