interface IPrintConfig {
name: string;
copies: number;
}
function print(config: IPrintConfig = {}) {
console.log(`Print ${config.copies} on printer ${config.name}`);
}
print();
when nothing it passed to print() i made the default value as {}. But print() is expecting a value of type IPrintConfig which comntains name and copies properties. I can solve this issue by making both of those properties as optional. Is there another way to solve this issue without making them optional

config.copiesandconfig.nameto have inside the implementation if someone just callsprint()?