Skip to content

Bundled type definitions are faulty #7

Closed
@d-fischer

Description

@d-fischer

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)

Affected packages and versions: 4.0.0

Steps to reproduce

mkdir bug
cd bug
yarn init -y
yarn add typescript unist-util-position @types/unist
yarn tsc --init
echo "import { pointStart } from 'unist-util-position';" > index.ts
yarn tsc index.ts

Expected behavior

Compiles with no errors.

Actual behavior

$ yarn tsc index.ts
yarn run v1.22.4
$ /home/daniel/Projekte/bug/node_modules/.bin/tsc index.ts
node_modules/unist-util-position/index.d.ts:16:11 - error TS2304: Cannot find name 'type'.

16   export {type as displayName}
             ~~~~


Found 1 error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions