chore(typing): use types for DOM API
This is possible now that ts2dart special cases these for dart. Fixes #2770
This commit is contained in:
@ -20,7 +20,7 @@ export class EmulatedUnscopedShadowDomStrategy extends ShadowDomStrategy {
|
||||
|
||||
hasNativeContentElement(): boolean { return false; }
|
||||
|
||||
prepareShadowRoot(el): /*(#2770) Node*/ any { return el; }
|
||||
prepareShadowRoot(el): Node { return el; }
|
||||
|
||||
constructLightDom(lightDomView: viewModule.DomView, el): LightDom {
|
||||
return new LightDom(lightDomView, el);
|
||||
|
@ -10,5 +10,5 @@ import {ShadowDomStrategy} from './shadow_dom_strategy';
|
||||
*/
|
||||
@Injectable()
|
||||
export class NativeShadowDomStrategy extends ShadowDomStrategy {
|
||||
prepareShadowRoot(el): /*(#2770) Node*/ any { return DOM.createShadowRoot(el); }
|
||||
prepareShadowRoot(el): Node { return DOM.createShadowRoot(el); }
|
||||
}
|
||||
|
Reference in New Issue
Block a user