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

how to import the Vnode<any, any> type? #2658

Closed
aldokkani opened this issue Feb 27, 2021 · 4 comments
Closed

how to import the Vnode<any, any> type? #2658

aldokkani opened this issue Feb 27, 2021 · 4 comments
Labels
Type: Question For issues that are purely questions about Mithril, not necessarily bug reports or suggestions

Comments

@aldokkani
Copy link

I cannot find this anywhere on the docs nor I am able to search issue for it

@aldokkani aldokkani added the Type: Question For issues that are purely questions about Mithril, not necessarily bug reports or suggestions label Feb 27, 2021
@osban
Copy link
Contributor

osban commented Feb 27, 2021

@aldokkani Have you looked here?

@aldokkani
Copy link
Author

@osban I just did but I find nothing

@orbitbot
Copy link
Member

@aldokkani Skimming the typescript definitions, don't think it actually exists, other than as Child, so if you need another name for it you'll have to add your own to describe what that might mean in your app.

@fuzetsu
Copy link
Contributor

fuzetsu commented Feb 28, 2021

Importing Vnode works fine for me after installing @types/mithril

https://codesandbox.io/s/distracted-kirch-nibh6?file=/src/index.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question For issues that are purely questions about Mithril, not necessarily bug reports or suggestions
Projects
Status: Closed
Development

No branches or pull requests

4 participants