Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Json2ts link #645

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/typeScript.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ declare namespace API {
}
```

> There are no type definitions in many projects, and websites such as [json2ts](http://json2ts.com/) are recommended for automatic conversion.
> There are no type definitions in many projects, and websites such as [json2ts](https://json2ts-plum.vercel.app/) are recommended for automatic conversion.

We can use it easily when using it. Files ending with `d.ts` will be imported to the global by TypeScript by default, but the `import` syntax cannot be used. If you need to quote, you need to use triple slashes.

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/typeScript.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ declare namespace API {
}
```

> 很多项目中是没有类型定义的,这里推荐 [json2ts](http://json2ts.com/) 等网站来自动转化。
> 很多项目中是没有类型定义的,这里推荐 [json2ts](https://json2ts-plum.vercel.app/) 等网站来自动转化。

在使用时我们就可以很简单的来使用, `d.ts` 结尾的文件会被 TypeScript 默认导入到全局,但是其中不能使用 `import` 语法,如果需要引用需要使用三斜杠。

Expand Down