Optimize Modular

This commit is contained in:
2022-01-03 13:32:52 +08:00
parent 49ed8e588a
commit 121b620312
4 changed files with 187 additions and 156 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ import { Logger, LogLabel, LevelLogLabel, LifeCycleLogLabel, NormalStyle } from
/**
* 在 UI 中显示的数据
*/
type DisplayData = {
interface IDisplayData {
/**
* 显示内容
@@ -20,8 +20,8 @@ type DisplayData = {
/**
* 模组事件
*/
type StatusBarEvent = {
m: DisplayData
interface StatusBarEvent {
m: IDisplayData
};
/**
+1 -1
View File
@@ -8,7 +8,7 @@ import { Storage } from "../../core/Storage";
class TestCore<M extends Manager> extends Modular<M>
implements Partial<ILifetime> {
public onLoad() {
public override onLoad() {
let s = new Storage("test", {
a: new Date(),