Open nh60211as opened 5 months ago
Adjust imgUrl?: string to imgUrl: string | null to be more explicit regarding the nullability of the data field.
imgUrl?: string
imgUrl: string | null
As-is:
export interface VTuberDisplayData { id: string; activity: Activity; name: string; imgUrl?: string; YouTubeId?: string; YouTubeSubscriber?: CountType; TwitchId?: string; TwitchFollower?: CountType; popularVideo?: VideoInfo; group?: string; nationality?: string; debutInfo: DebutInfo; }
To-be:
export interface VTuberDisplayData { id: string; activity: Activity; name: string; imgUrl: string | null; YouTubeId: string | null; YouTubeSubscriber: CountType | null; TwitchId: string | null; TwitchFollower: CountType | null; popularVideo: VideoInfo | null; group: string | null; nationality: string | null; debutInfo: DebutInfo; }
Adjust
imgUrl?: string
toimgUrl: string | null
to be more explicit regarding the nullability of the data field.As-is:
To-be: