Skip to content

element-internals-polyfill type import causing compilation issues on newer Typescript versions #59

@hrmcdonald

Description

@hrmcdonald

There's a typing conflict within the element-internals-polyfill types that clashes with the latest types from JS used by Typescript. It seems to cause issues in a lot of projects unless they enable skipLibCheck to prevent Typescript from running into this.

Our problem is that our components use this mixin and it happens to import one type from that polyfill that will always trigger this issue during type checking at the moment. That library does seem to be working on a fix here, but due to the nature of that polyfill I assume it will happen again whenever the spec types change again down the road.

Is the import of this type actually needed here:

import { IElementInternals } from "element-internals-polyfill";

Or is there another way to work around that without pulling in that dependency?

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