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

[typescript] walkTreeData only refers to a type #11

Closed
f3l1x opened this issue Apr 14, 2020 · 2 comments
Closed

[typescript] walkTreeData only refers to a type #11

f3l1x opened this issue Apr 14, 2020 · 2 comments

Comments

@f3l1x
Copy link

f3l1x commented Apr 14, 2020

Hi guys! Thx your this lib.

We're dealing with this kind of error in our codebase.

image

I was trying to import also this way. It does not work neither.

import * as tree from "he-tree-vue";

We end up with this one.

// @ts-ignore
import {walkTreeData} from "he-tree-vue/dist/he-tree-vue";

Can you please help me? Thx.

@phphe
Copy link
Owner

phphe commented Apr 15, 2020

This is a bug. The type declaration file should export function instead of interface. fixed in 1.2.1

@phphe phphe closed this as completed Apr 17, 2020
@f3l1x
Copy link
Author

f3l1x commented Apr 20, 2020

Confirmed, it works. Thanks.

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

2 participants