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

@beta

标准化可自由决定
语法种类修饰符
同义词@experimental

建议含义

表示 API 项目的发布阶段为“beta”。它已以实验性质发布给第三方开发者,目的是收集反馈。该 API 不应用于生产环境,因为其协议可能会在不另行通知的情况下更改。工具可能会从公开发布版本中删除声明,但可能会将其包含在开发者预览版本中。

示例

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

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

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

另请参阅