Support enums

This commit is contained in:
Fabian Stamm
2023-01-02 16:34:13 +01:00
parent 6e947bde57
commit b3b202c9f9
8 changed files with 75 additions and 48 deletions

View File

@ -6,6 +6,9 @@ Type/Service definition language and code generator for json-rpc 2.0. Currently
| ------- | --------------------------------- |
| ts-node | Typescript for NodeJS |
| ts-esm | Typescript in ESM format for Deno |
| rust | Rust |
| dart | Dart |
| c# | C# |
## Usage
@ -23,7 +26,7 @@ enum TestEnum {
type Test {
testen: TestEnum;
someString: string;
someNumber: number;
someNumber?: number;
array: string[];
map: {number, TestEnum};
}
@ -44,4 +47,8 @@ Then run the generator like this `jrpc compile test.jrpc -o=ts-node:output/`.
This will generate the Client and Server code in the specified folder.
//TODO: Make Documentation better
## TODOS
1. Documentation
2. Null Checks/Enforcements in all languages
3. More and better tests