Last active
October 9, 2021 15:54
-
-
Save ssougnez/2f461b296334e73aa78bc4a4a7e7a9f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let _bag = new Map<number, any>(); | |
export function HistoryEntryComponent(type: any) { | |
return function (cls: any) { | |
_bag.set(type, cls); | |
}; | |
} | |
export function GetHistoryEntryComponent(type: number) { | |
return _bag.get(type); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment