So lets say i have two interfaces
interface InterfaceOne {
myString: string,
myNum: number
}
interface interfaceTwo extends InterfaceOne {
myBool: boolean
}
with the following typescript code
let somedata: interfaceTwo = {
myString: "hello world",
myNum: 42,
myBool: false
is there a way I can convert somedata into a InterfaceOne while removing the key myBool from the object?