# cts **Repository Path**: HTWX/TypeScript ## Basic Information - **Project Name**: cts - **Description**: 中文版typescript简称 cts - **Primary Language**: TypeScript - **License**: Apache-2.0 - **Default Branch**: cts-3.3 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 2 - **Created**: 2018-12-07 - **Last Updated**: 2023-08-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ># [__CtsScript__](https://gitee.com/HTWX/TypeScript/) [ **CtsScript** ](https://gitee.com/HTWX/TypeScript/) 是中文版 **TypeScript**, 支持所有 **TypeScript** 语法。 通过为 **TypeScript** 类型定义文标注 **词典语句**,实现中文编程。目前版本为 **v3.3.3**,对应 **TypeScript** **v3.3.3**, 下个计划版本为 **v4.3.3**。 ># [__安装__]() 通过 **Node.js** 包管理工具 **npm** 命令安装 ( 国内环境最好设置淘宝代理 ) : ```bash npm install -g ctsscript ``` ># [__构建__]() >拷贝库: ```bash git clone https://gitee.com/HTWX/CtsScript.git ``` >进入当前目录: ```bash cd CtsScript ``` >安装构建文件: ```bash npm install -g jake npm install ``` >构建或测试: ``` jake local # 本地构建在目录 built/local 下 jake clean # 删除本地构建目录 ``` ># [__使用__]() >关键字对照表 |[英文]()|中文|[英文]()|中文|[英文]()|中文|[英文]()|中文|[英文]()|中文|[英文]()|中文| |:--------:|---|:--------:|---|:--------:|---|:-------:|---|:--------:|---|:--------:|---| |[abstract]()|抽象|[any]()|任意|[as]()|转为|[bigint]()|大数|[boolean]()|真假|[break]()|跳出| |[case]()|如为|[catch]()|捕获|[class]()|类别|[continue]()|继续|[const]()|常量|[constructor]()|构造| |[debugger]()|调试|[declare]()|声明|[default]()|默认|[delete]()|删除|[do]()|运行|[else]()|否则| |[enum]()|枚举|[export]()|导出|[extends]()|扩展|[false]()|为假|[finally]()|善后|[for]()|循环| |[from]()|来自|[function]()|函数|[get]()|获取|[if]()|如果|[implements]()|实现|[import]()|导入| |[in]()|位于|[infer]()|推断|[instanceof]()|身为|[interface]()|接口|[is]()|作为|[keyof]()|键为| |[let]()|变量|[module]()|模块|[namespace]()|名域|[never]()|不及|[new]()|新建|[null]()|空值| |[number]()|数字|[object]()|实例|[package]()|包装|[private]()|私有|[protected]()|保护|[public]()|公开| |[readonly]()|只读|[require]()|需要|[global]()|全局|[return]()|返回|[set]()|设置|[static]()|静态| |[string]()|文字|[super]()|父级|[switch]()|假如|[symbol]()|符号|[this]()|本体|[throw]()|抛出| |[true]()|为真|[try]()|尝试|[type]()|类型|[typeof]()|类为|[undefined]()|未定|[unique]()|唯一| |[unknown]()|未知|[var]()|定义|[void]()|无值|[while]()|判断|[with]()|外扩|[yield]()|选取| |[async]()|异步|[await]()|等待|[of]()|属于| >命令行使用 ```bash node built/local/cts.js hello.cts ``` ># [__鸣谢__]() >微软