Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESM: IIterateeContext typescript interface not exposed #136

Open
LaurensRietveld opened this issue Aug 14, 2022 · 0 comments
Open

ESM: IIterateeContext typescript interface not exposed #136

LaurensRietveld opened this issue Aug 14, 2022 · 0 comments

Comments

@LaurensRietveld
Copy link

When using es-modules, the type of IIterateeContext is not exposed.

Example snippet:

import eachDeep from "deepdash/eachDeep";
eachDeep({}, (val,key,context) => {
    context // typed as any
})

This is caused by the following line in the eachDeep.d.ts file in the es folder:

import { IIterateeContext } from "./IIterateeContext";

As ./IIterateeContext does not exist in the es folder, it resolves as any

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant