Skip to content

Bug: some types are imported as any #5710

@2wheeh

Description

@2wheeh

Lexical version: 0.13.1 the latest

Steps To Reproduce

  1. type assertion to PointType from lexical
  2. call getNode() method.
  3. typescript fails to parse correct return type, instead it shows any

It happens when import the lexical from npm.
It works well on the code base this repo.

The current behavior

image

The expected behavior

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions