Initial support for grid for live and media viewer.

This commit is contained in:
Dermot Duffy
2023-08-08 22:26:25 -07:00
parent 69249b6c33
commit b663e0b731
59 changed files with 3308 additions and 429 deletions
+5
View File
@@ -221,3 +221,8 @@ export const setOrRemoveAttribute = (
element.removeAttribute(name);
}
};
/**
* Allow typescript to narrow types based on truthy filter.
*/
export const filterTruthy = <T>(x: T | false | undefined | null | '' | 0): x is T => !!x;