mirror of
https://github.com/motajs/template.git
synced 2026-11-09 03:34:30 +08:00
refactor: flag 系统
This commit is contained in:
1 parent
ebfe59b4f5
commit
ebae685a4e
15 files changed
+385
-21
No files matched your search
Vendored
+2
-1
@@ -833,7 +833,8 @@ interface Control {
|
||||
* @param defaultValue 当变量不存在时的返回值,可选(事件流中默认填0)。
|
||||
* @returns flags[name] ?? defaultValue
|
||||
*/
|
||||
getFlag<T>(name: string, defaultValue?: T): T;
|
||||
getFlag<T>(name: string): T | undefined;
|
||||
getFlag<T>(name: string, defaultValue: T): T;
|
||||
|
||||
/**
|
||||
* @deprecated 可使用,暂时没有替代接口\
|
||||
|
||||
Reference in new issue
Block a user