Commit Graph

11 Commits

Author SHA1 Message Date
Zacharias Enochsson 82caa5d941
Allow bare effecter as effect (#1075) 2022-03-02 09:25:20 -03:00
Zacharias Enochsson 088ea05a45
Allow conditional effects types (#1071) 2021-08-18 11:20:44 +09:00
Zacharias Enochsson a9a04853ad
Improve types DX (#1062) 2021-05-05 09:38:07 +09:00
Ron Martinez bb2d720d72
Optimize types (#1056)
- Expand usage of readonly arrays and readonly tuples.
- Made any the default payload type for Subscription and Effect.
- Narrow the return type of subscribers to just be Unsubscribe.
2021-04-25 01:58:44 +09:00
Ron Martinez 177d83e7ab
Better direct usage of EventActions (#1054) 2021-04-22 17:03:33 +09:00
Ron Martinez 92bf6f4c49
Better handling of type params for memo() (#1053) 2021-04-22 17:02:25 +09:00
Jorge Bucaran ab8abae330
Remove extraneous node parameter 2021-04-18 09:40:33 +09:00
Ron Martinez 59f4a10675
More work on types (#1047)
- Refactor App type, PropList, Dispatch.
- Remove Transform and other non-essentials.
- Improve types for custom payloads.
- Inline ActionWithPayload, Effecter, StateWithEffects, and Subscriber.
- Adjust type parameters for text().
2021-04-17 12:39:08 +09:00
Zacharias Enochsson 9e0171fb20
Enable definite payloads (#1045) 2021-04-06 10:25:26 +09:00
Jorge Bucaran c38214ed21
Prettify 2021-04-05 18:35:20 +09:00
Ron Martinez a4ce5f5789
TypeScript definitions for 2.x with docs (#1016) 2021-04-05 12:29:37 +09:00