-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve TypeScript generated code (fixes and improvements) (#603)
* Export enum options as objects/functions Thanks to that devs could now use it more intuitively, similarly to Rust, for example: let role = Role.Admin; // it returns { tag: "Admin", value: undefined }; let role1 = Role.Custom("Foo") // returns { tag: "Custom", value: "Foo" }; * 64 bit ints need to be represented as BigInt, not number In JS all numbers are 64bit floats, but that means integers are only up to 53 bits. Thus any 64+ bits integers need to be handled as BigInts * Use camel case for product names * Don't automatically register reducers and components * Improve reducers and components * Use this.db for tables * Fix u64 and i64 to be a BigInt * Table proxy changes * Clippy * Remove some of the reducer/table methods from autogen Some of the methods were moved to the parent classes * Remove _tableProxy import * Remove count() and all() from typescript generation --------- Signed-off-by: Piotr Sarnacki <drogus@gmail.com>
- Loading branch information
Showing
1 changed file
with
70 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters