Skip to content

Subsequent property declarations must have the same type. #104

@nicoesiea

Description

@nicoesiea

Describe the bug
Error: node_modules/resize-observer-polyfill/src/index.d.ts:19:18 - error TS2717: Subsequent property declarations must have the same type. Property 'contentRect' must be of type 'DOMRectReadOnly', but here has type 'DOMRectReadOnly'.

19 readonly contentRect: DOMRectReadOnly;

To Reproduce
Steps to reproduce the behavior:

  1. use angular13
  2. with typescript 4.6.4
  3. npm start
  4. See error

Expected behavior
The issue is because of the latest version of TypeScript ships with an official type definition, which this library conflicts with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions