feat: Improve UX of namespace select filter

- Add better support for thousands of namespaces

- Add support for mouse only multi-selection

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-06-01 09:44:09 -04:00
1 parent 21914db35b
commit 151a393fb5
6 files changed
+338 -202

No files matched your search

@@ -123,7 +123,8 @@ export function isDefined<T>(val: T | undefined | null): val is T {
return val != null;
}
export function isFunction(val: unknown): val is (...args: unknown[]) => unknown {
// @ts-expect-error 2677
export function isFunction<T>(val: T): val is Extract<T, Function> extends never ? ((...args: unknown[]) => unknown) : Extract<T, Function> {
return typeof val === "function";
}