This commit is contained in:
Asaki Yuki 2026-01-04 13:19:44 +07:00
parent e2f472d802
commit d9cf50eec1
5 changed files with 36 additions and 17 deletions

View file

@ -3,7 +3,7 @@ import { UI } from "../components/UI.js"
export const Memory = {
cache: new Map<string, { namespace: string; elements: Map<string, UI<any>> }>(),
register_ui(path: string, element: UI<any>) {
register_ui(path: string, element: UI<any, any>) {
const { elements: saver, namespace } = this.get_file(path, element.namespace!)
if (saver.get(element.name!)) {