Is there a way to utilize an interface with both optional and required properties to generate a new interface that excludes all optional properties?
For instance, if we consider the following interface:
interface FirstInterface {
name: string,
surname?: string,
}
How can we derive a new interface without any optional properties from this initial interface:
interface SecondInterface {
name: string,
}