Hyperapp: Enhance typescript definitions

Created on 8 Oct 2017  路  4Comments  路  Source: jorgebucaran/hyperapp

Several pieces are missing from the typescript definitions:

  • [x] proper definition for Thunk (with types for arguments & return type) + example (done in #412)
  • [ ] jsx namespace: intrinsic elements + example
  • [ ] lifecycle events on VNode + example
  • [x] proper definition of module + example
  • [x] proper definition of init() + example

If anyone has any other idea, I'll add to this list.

Update: removed HOA, added modules and init.

Feature

Most helpful comment

Thanks for #412!

I will work next on the definition for HOAs + an example.
Hopefully I will have some time tomorrow/Wednesday.

All 4 comments

Where would you like to work on this?

Thanks for #412!

I will work next on the definition for HOAs + an example.
Hopefully I will have some time tomorrow/Wednesday.

Bring it on! 馃幇 馃槃

I think at this point we can drop HOAs. I also think the JSX typing can be done another time. Init and Modules are more important.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jscriptcoder picture jscriptcoder  路  4Comments

dmitrykurmanov picture dmitrykurmanov  路  4Comments

guy-kdm picture guy-kdm  路  4Comments

icylace picture icylace  路  3Comments

jorgebucaran picture jorgebucaran  路  3Comments