Skip to content

Improve TypeScript support by allowing types to be imported #163

Open
@wjhsf

Description

@wjhsf

no-disallowed-lwc-imports restricts the APIs that can be imported from lwc. It was not written with TypeScript in mind. We should update the rule to make working with TypeScript easier.

Options:

  1. Keep the current implementation, but add commonly used type and interface declarations.
  2. Allow any type or interface to be imported.
  3. Skip checking import type declarations (This would technically allow people to import the types for disallowed APIs. That's weird, though, and it still wouldn't allow them to use the disallowed APIs at runtime, so it shouldn't matter much.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions