// Copyright: Ankitects Pty Ltd and contributors // License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html interface Hideable { hidden?: boolean; } export function showComponent(component: T): T { component.hidden = false; return component; } export function hideComponent(component: T): T { component.hidden = true; return component; } export function toggleComponent(component: T): T { component.hidden = !component.hidden; return component; }