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

@experimental

标准化酌情决定
语法种类修饰符
同义词@beta

建议的含义

@beta 相同的语义,但被不支持 @alpha 发布阶段的工具使用。

示例

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

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

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

另请参阅