Unfortunately the type for DirectiveResult means it's just an empty object. So in order to block actual objects, we have to narrow DirectiveResult further to this empty object type.
DirectiveResult
Unfortunately the type for
DirectiveResultmeans it's just an empty object. So in order to block actual objects, we have to narrowDirectiveResultfurther to this empty object type.