mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
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";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user