TypeScript注释的语法在哪里? [英] Where is the syntax for TypeScript comments documented?

查看:3152
本文介绍了TypeScript注释的语法在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否在任何地方记录了TypeScript注释的语法?



现在支持C# ///

TypeScript使用JSDoc。 例如

  / **这是foo函数的说明。 * / 
function foo(){
}

要学习jsdoc: a href =http://usejsdoc.org/ =nofollow noreferrer> http://usejsdoc.org/





但您不需要使用类型注释JSDoc中的扩展。


Is the syntax for TypeScript comments documented anywhere?

And by any chance, does it now support the C# /// system?

解决方案

TypeScript uses JSDoc. e.g.

/** This is a description of the foo function. */
function foo() {
}

To learn jsdoc : http://usejsdoc.org/

But you don't need to use the type annotation extensions in JSDoc.

这篇关于TypeScript注释的语法在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆