Skip to content

Commit

Permalink
Bindings
Browse files Browse the repository at this point in the history
Signed-off-by: anqurvanillapy <[email protected]>
  • Loading branch information
anqurvanillapy committed Jun 12, 2024
1 parent deaefc6 commit d2e0828
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/01-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ function printId(id: number | string) {
```ts
type StringID = {
str: string;
type: 'string_id';
type: "string_id";
}

type NumberID = Omit<StringID, 'type'> & {
type NumberID = Omit<StringID, "type"> & {
n: number;
type: 'number_id';
type: "number_id";
}

type ID = StringID | NumberID;
Expand Down
8 changes: 4 additions & 4 deletions docs/02-getting-started.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# 安装与上手

## 创建工作文件夹
## 创建目录

RowScript 采用 `npm` 生态系统,因此只需使用 `npm init` 命令即可
RowScript 完全拥抱 npm 生态,因此只需使用 `npm init` 命令初始化项目即可

```bash
mkdir demo/
Expand All @@ -18,12 +18,12 @@ npm init
npm install -D rowscript
```

这样就完成了
完成

* 不需要 `config.json` 或其他文件
* 无需向 `package.json` 文件添加新字段以免影响其结构

它的运行就是如此简洁,所有的默认配置均适用,无需额外调整。
所有的默认配置均适用,无需额外调整。

## 你好... 世界?

Expand Down
2 changes: 1 addition & 1 deletion docs/04-everyday-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RowScript 支持并兼容以下 JavaScript 基本类型:

[`bigint`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

## 内置操作符
### 内置操作符

RowScript 不支持一些在 JavaScript 中著名的 [“感谢发明了 JavaScript”] 梗、功能过于“强大”的操作符。比如,`+`/`-`
操作符仅适用于类型相同的参数。
Expand Down

0 comments on commit d2e0828

Please sign in to comment.