From 2f6a50b851841c80821c8b331ecbf49689055116 Mon Sep 17 00:00:00 2001 From: JiquanWang99 <951873902@qq.com> Date: Wed, 9 Aug 2023 23:40:41 +0800 Subject: [PATCH] 0.2.3 --- README.md | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3c042c3..72fe42a 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ If you want the same feature that can work in Browser or all other platforms, yo Git repository: [rusty-schema2ts](https://github.com/PuffMeow/rusty-schema2ts). If you like it, please give me a little star♥ +__The api of them are all the same.__ + ## TypeScript vs Rust You can find [benchmark here](https://github.com/PuffMeow/rusty-schema2ts/blob/main/bench/index.js) @@ -195,7 +197,7 @@ export interface IArr3 { | preffix | string | × | I | Interface preffix, if you don't like this, you can give it a empty string | | preffixOfEnum | string | × | T | Enum type preffix, if you don't like this, you can give it a empty string | | isGenComment | boolean | × | false | Whether to automatically generate comments | -| isExport | boolean | × | false | Whether to export the interfaces and types | +| isExport | boolean | × | true | Whether to export the interfaces and types | | indent | number | × | 2 | Code indent | | semi | boolean | × | true | Is enable semicolon | | optional | boolean | × | true | If this is enabled, it will generate the optional interface, default value is true | diff --git a/package.json b/package.json index 94f4343..a408a4d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@puffmeow/rusty-schema2ts", - "version": "0.2.2", + "version": "0.2.3", "main": "index.js", "types": "index.d.ts", "files": [