angular-contrib icon indicating copy to clipboard operation
angular-contrib copied to clipboard

Conflict of Renderer2 typing extension with Angular 9

Open Pedro-vk opened this issue 5 years ago • 1 comments

There is a small conflict with the Renderer2 extension with Angular 9 animations.

    ERROR in node_modules/@angular/platform-browser/animations/animations.d.ts:71:22 - error TS2720: Class 'ɵangular_packages_platform_browser_animations_animations_f' incorrectly implements class 'Renderer2'. Did you mean to extend 'Renderer2' and inherit its members as a subclass?
      Property 'childNodes' is missing in type 'ɵangular_packages_platform_browser_animations_animations_f' but required in type 'Renderer2'.
    
    71 export declare class ɵangular_packages_platform_browser_animations_animations_f implements Renderer2 {
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
      node_modules/@angular-contrib/core/render-extension/render-extension.module.d.ts:5:9
        5         childNodes(node: Node): NodeList;
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        'childNodes' is declared here.
    node_modules/@angular/platform-browser/animations/animations.d.ts:102:22 - error TS2720: Class 'ɵAnimationRenderer' incorrectly implements class 'Renderer2'. Did you mean to extend 'Renderer2' and inherit its members as a subclass?
      Property 'childNodes' is missing in type 'ɵAnimationRenderer' but required in type 'Renderer2'.
    
    102 export declare class ɵAnimationRenderer extends ɵangular_packages_platform_browser_animations_animations_f implements Renderer2 {
                             ~~~~~~~~~~~~~~~~~~
    
      node_modules/@angular-contrib/core/render-extension/render-extension.module.d.ts:5:9
        5         childNodes(node: Node): NodeList;
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        'childNodes' is declared here.

Pedro-vk avatar Feb 12 '20 01:02 Pedro-vk

Can you please publish a new version of this library to npm with this fix

ebeuker avatar Mar 26 '20 21:03 ebeuker