fun
This commit is contained in:
parent
e2f472d802
commit
d9cf50eec1
5 changed files with 36 additions and 17 deletions
|
|
@ -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!)) {
|
||||
|
|
|
|||
Reference in a new issue