-
Notifications
You must be signed in to change notification settings - Fork 50
feat: Improvement of SketchProps typing using Generics? #151
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
Comments
@junwen-k thats a great idea, I will look into this and try to get it into the next release when it happens. |
I am not sure if this is related I want to lets say query data from a API and pass that to the sketch object. App.js
GraphSketch.js
|
@Gresliebear I think you should check the documentation on handling props as that shows you how to pass down props into your sketches. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
First of all, thank you for this great project!
Right now custom props are not statically typed when using typescript. E.g,
Maybe we can implement generics that allow users to specify custom props so the type will be correct. For instance,
Not tested, but it will probably look something like that.
The text was updated successfully, but these errors were encountered: