💚 fix build-error caused by ts check (#2110)

This commit is contained in:
gongshun 2022-05-27 11:19:41 +08:00 committed by GitHub
parent ca209e87f9
commit a885c4ab8a

View File

@ -61,8 +61,7 @@ async function validateSingularMode<T extends ObjectType>(
return typeof validate === 'function' ? validate(app) : !!validate; return typeof validate === 'function' ? validate(app) : !!validate;
} }
// @ts-ignore const supportShadowDOM = !!document.head.attachShadow || !!(document.head as any).createShadowRoot;
const supportShadowDOM = document.head.attachShadow || document.head.createShadowRoot;
function createElement( function createElement(
appContent: string, appContent: string,