mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Improve typing of front end routes to fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
048ed7d143
commit
e5c25f94a3
106 files changed
+722
-1286
No files matched your search
@@ -125,7 +125,7 @@ export function isDefined<T>(val: T | undefined | null): val is T {
|
||||
|
||||
export type ExtractOr<T, U, Fallback = never> = Extract<T, U> extends never ? Fallback : Extract<T, U>;
|
||||
|
||||
// @ts-expect-error
|
||||
// @ts-expect-error 2677
|
||||
export declare function isFunction<T>(val: T): val is ExtractOr<T, Function, (...args: unknown[]) => unknown> {
|
||||
return typeof val === "function";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user