Make explicit reference to ShadowRoot for type-check