diff --git a/README.md b/README.md index 1c2c9d6f56a13a0ebed0d927a80fc3ff6f59634b..0b923dad5914b1e6960cec3de46200179a963450 100644 --- a/README.md +++ b/README.md @@ -6,16 +6,16 @@ Sendable对象生成工具可以根据用户的配置,将用户自定义的tts #### 安装编译教程 1. 从[Download Visual Studio Code](https://code.visualstudio.com/download)下载vscode并安装,或安装其他IDE。 2. 从[Download Node.js](https://nodejs.org/en/download/current)下载Node.js并安装,Node.js为JavaScript的运行时环境,自带包管理器npm。 -``` -3. 拉取serialization_codegen仓库代码或者网页下载工具 -拉取工具仓库: +3. 拉取serialization_codegen仓库代码或者网页下载工具。 ```shell +拉取工具仓库: git clone --recursive git@gitee.com:openharmony-sig/serialization_codegen.git or git clone --recursive https://gitee.com/openharmony-sig/serialization_codegen.git -``` + 或从网页直接下载工具: https://gitee.com/openharmony-sig/serialization_codegen/tree/tts-transformer +``` 4. 安装npm依赖 ```shell cd serialization_codegen @@ -70,7 +70,7 @@ cd bitfunjsontransformer/dist 4. tts文件编写 ```shell import { collections } from '@kit.ArkTS' -import { Expose, Exclude, Type } from 'class-transformer' +import { Expose, Exclude, Type, Transform, Exclude } from 'class-transformer' const enum TestEnum { FIRST = 1, diff --git a/dist/README.md b/dist/README.md index 1c2c9d6f56a13a0ebed0d927a80fc3ff6f59634b..0b923dad5914b1e6960cec3de46200179a963450 100644 --- a/dist/README.md +++ b/dist/README.md @@ -6,16 +6,16 @@ Sendable对象生成工具可以根据用户的配置,将用户自定义的tts #### 安装编译教程 1. 从[Download Visual Studio Code](https://code.visualstudio.com/download)下载vscode并安装,或安装其他IDE。 2. 从[Download Node.js](https://nodejs.org/en/download/current)下载Node.js并安装,Node.js为JavaScript的运行时环境,自带包管理器npm。 -``` -3. 拉取serialization_codegen仓库代码或者网页下载工具 -拉取工具仓库: +3. 拉取serialization_codegen仓库代码或者网页下载工具。 ```shell +拉取工具仓库: git clone --recursive git@gitee.com:openharmony-sig/serialization_codegen.git or git clone --recursive https://gitee.com/openharmony-sig/serialization_codegen.git -``` + 或从网页直接下载工具: https://gitee.com/openharmony-sig/serialization_codegen/tree/tts-transformer +``` 4. 安装npm依赖 ```shell cd serialization_codegen @@ -70,7 +70,7 @@ cd bitfunjsontransformer/dist 4. tts文件编写 ```shell import { collections } from '@kit.ArkTS' -import { Expose, Exclude, Type } from 'class-transformer' +import { Expose, Exclude, Type, Transform, Exclude } from 'class-transformer' const enum TestEnum { FIRST = 1, diff --git a/dist/library.har b/dist/library.har index 8f6229f713a8e77547cb006ab7d08e981554b610..fd4217ad352a81596fdebf8eedc2decbe61a62b0 100644 Binary files a/dist/library.har and b/dist/library.har differ diff --git a/pack/library.har b/pack/library.har index 8f6229f713a8e77547cb006ab7d08e981554b610..fd4217ad352a81596fdebf8eedc2decbe61a62b0 100644 Binary files a/pack/library.har and b/pack/library.har differ