✏️ 完善其余函数式组件类型

This commit is contained in:
BTMuli
2023-10-13 23:09:08 +08:00
parent 980b420eb1
commit 7dedcc4ea9
4 changed files with 50 additions and 21 deletions

View File

@@ -1,8 +1,7 @@
/**
* @file types Component Snackbar.d.ts
* @description Component Snackbar 类型声明文件
* @author BTMuli <bt-muli@outlook.com>
* @since Alpha v0.2.3
* @since Beta v0.3.3
*/
declare namespace TGApp.Component.Snackbar {
@@ -16,9 +15,18 @@ declare namespace TGApp.Component.Snackbar {
* @property {boolean} show 是否显示
* @return Params
*/
export interface Params {
interface Params {
text: string;
color?: string;
timeout?: number;
}
/**
* @description Snackbar 方法 - displayBox
* @since Beta v0.3.3
* @function displayBox
* @param {Params} props
* @return void
*/
function displayBox(props: Params): void;
}