📝 TypeScript 风格指南:语法规范。

This commit is contained in:
TinkerRobot
2021-08-08 23:03:25 +08:00
parent 803dffa932
commit 1d4db988f9
4 changed files with 372 additions and 11 deletions
@@ -1046,6 +1046,8 @@ JavaScript中的类型
//出现this未定义警告
goog.bind(function() { this.someProperty; });
.. _js-comments:
注释
----------
+3 -2
View File
@@ -1,8 +1,9 @@
谷歌 TypeScript 风格指南
TypeScript 风格指南
################################################################################
.. toctree::
:caption: 目录
:numbered:
index
preface
syntax
@@ -1,7 +1,7 @@
前言
################################################################################
.. _introduction:
.. _ts-introduction:
简介
********************************************************************************
@@ -10,42 +10,42 @@
指南中的内容包括代码规范与最佳实践两部分。读者可根据所在团队的需求加以参考和选用。
指南中对 *必须* 、 *禁止* 、 *应当* 、 *不应* 、 *可以* 等词语的用法遵循 `RFC 2119 <https://datatracker.ietf.org/doc/html/rfc2119>`_ 中的定义。文中的所有示例均非适合实际项目的正式用法,只用于对指南中的内容加以说明。
指南中对 *必须、禁止、应当、不应、可以* 等词语的用法遵循 `RFC 2119 <https://datatracker.ietf.org/doc/html/rfc2119>`_ 中的定义。文中的所有示例均非适合实际项目的正式用法,只用于对指南中的内容加以说明。
.. _about:
.. _ts-about:
翻译信息
********************************************************************************
.. _about-last-update:
.. _ts-about-last-update:
上次更新日期
================================================================================
2021 年 08 月 28 日。
2021 年 08 月 08 日。
.. _about-author:
.. _ts-about-author:
作者
================================================================================
* `TinkerRobot <https://github.com/tinkerrobot>`_
.. _about-original:
.. _ts-about-original:
原文链接
================================================================================
`Google TypeScript Style Guide <https://google.github.io/styleguide/tsguide.html>`_
.. _about-translation:
.. _ts-about-translation:
中文版链接
================================================================================
`谷歌 TypeScript 风格指南 <https://zh-google-styleguide.readthedocs.io/en/latest/google-typescript-styleguide/>`_
.. _about-changelog:
.. _ts-about-changelog:
修订历史
================================================================================
File diff suppressed because it is too large Load Diff