Rush Stack商店博客活动
跳到主要内容

@alpha

标准化酌情决定的
语法类型修饰符

建议含义

表示 API 项目的发布阶段为 “alpha”。它最终旨在供第三方开发者使用,但尚未发布。工具可能会从公开发布中修剪声明。

示例

/**
* Represents a book in the catalog.
* @public
*/
export class Book {
/**
* The title of the book.
* @alpha
*/
public get title(): string;

/**
* The author of the book.
*/
public get author(): string;
}

在此示例中,Book.author 从包含类继承了其 @public 指定,而 Book.title 则标记为 “alpha”。

另请参阅