hello, I wonder if there is a way to set a default value to the level property:
export interface NavItemProps<T> {
id: string;
title: string;
path: string;
metaData?: NavMetaData;
subNav?: NavItemProps<T>[];
}
export interface NavMetaData {
level: string;
fileType: string;
}
// how I am using the Interface
const SideNavMenu = ({items}:{ items: NavItemProps<string>[]}) => {
// ....
};