mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
15 lines
331 B
TypeScript
15 lines
331 B
TypeScript
const rendererTypes: Record<string, string> = {};
|
|
|
|
function getRendererTypes() {
|
|
return rendererTypes;
|
|
}
|
|
|
|
function setRendererType(uid: string, type: string) {
|
|
rendererTypes[uid] = type;
|
|
}
|
|
|
|
function unsetRendererType(uid: string) {
|
|
delete rendererTypes[uid];
|
|
}
|
|
|
|
export {getRendererTypes, setRendererType, unsetRendererType};
|