Skip to content

Import types from mdast or add @types/unist to devDeps #14

Closed
@CanRau

Description

@CanRau

I think those types should probably be imported from 'mdast'
https://github.com/syntax-tree/unist-util-is/blob/master/index.d.ts#L3
Or as mentioned in the title @types/unist needs to be added to the dependencies

I'm trying to update to Yarn2 and this popped up

../../.yarn/cache/unist-util-is-npm-4.0.1-2754fc9f60-1.zip/node_modules/unist-util-is/index.d.ts(3,28): error TS2307: Cannot find module 'unist'.

and as Yarn2 is really specific about deps my only guess right now is this issue 😁

(edited by @wooorm to refactor formatting)

Metadata

Metadata

Assignees

No one assigned

    Labels

    🙅 no/wontfixThis is not (enough of) an issue for this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions