I am wondering if there is a way to define the following type in a generic and dynamic manner
type ReturnNodeType = NonNullable< ReturnType["data"]