I need help extracting the type of the 'name' property from an object belonging to the Action interface.
interface Action {
type: string,
payload: {
name: string
}
}
I attempted to use
Pick<Action, "payload.name">
, but it didn't work. Any suggestions on how to achieve this?