chore: Update mount parameter type in Danmuku and Setting classes

This commit is contained in:
Harvey Zack committed 2024-05-27 18:16:40 +08:00
1 parent f4396308fe
commit ab109a1acd
2 files changed
+9 -9

No files matched your search

@@ -129,12 +129,12 @@ type Option = {
/**
* 弹幕发送前的过滤器,支持返回 Promise
*/
beforeEmit?: (danmu: Danmu) => boolean | (() => Promise<boolean>);
beforeEmit?: (danmu: Danmu) => boolean | Promise<boolean>;
/**
* 弹幕显示前的过滤器,支持返回 Promise
*/
beforeVisible?: (danmu: Danmu) => boolean | (() => Promise<boolean>);
beforeVisible?: (danmu: Danmu) => boolean | Promise<boolean>;
/**
* 弹幕是否可见