Skip to content

Instantly share code, notes, and snippets.

@ssougnez
Last active October 9, 2021 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssougnez/2f461b296334e73aa78bc4a4a7e7a9f5 to your computer and use it in GitHub Desktop.
Save ssougnez/2f461b296334e73aa78bc4a4a7e7a9f5 to your computer and use it in GitHub Desktop.
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