interface Song {
songTitle: string;
singer: string;
album: string;
duration: string;
id: string;
imgUrl?: string,
operation?: string
}
type SongFiled = 'songTitle' | 'singer' | 'album' | 'duration' | 'id' | 'imgUrl'|'operation';
interface Column {
prop: SongFiled;
title: string;
flex: string;
isA?: boolean;
}
I want the optional values of type to be automatically changed based on the interface instead of adding one by one