mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
remove unnecessary | undefined types from the exactOptionalFieldTypes experiment
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
a1afd425b8
commit
b9ea2098b2
12 files changed
+40
-43
No files matched your search
@@ -10,7 +10,7 @@ import searchUrlPageParamInjectable from "../input/search-url-page-param.injecta
|
||||
import { KubeObject } from "../../../common/k8s-api/kube-object";
|
||||
import { Badge } from "../badge";
|
||||
|
||||
export type GetLabelBadges = (entity: CatalogEntity, onClick?: ((evt: React.MouseEvent<any, MouseEvent>) => void) | undefined) => JSX.Element[];
|
||||
export type GetLabelBadges = (entity: CatalogEntity, onClick?: (evt: React.MouseEvent<any, MouseEvent>) => void) => JSX.Element[];
|
||||
|
||||
const getLabelBadgesInjectable = getInjectable({
|
||||
id: "get-label-badges",
|
||||
|
||||
@@ -83,7 +83,7 @@ export const isUrl = inputValidator({
|
||||
*/
|
||||
export const isExtensionNameInstallRegex = TypedRegEx("^(?<name>(@[-\\w]+\\/)?[-\\w]+)(@(?<version>[a-z0-9-_.]+))?$", "gi") as {
|
||||
isMatch(val: string): boolean;
|
||||
captures(val: string): undefined | { name: string; version?: string | undefined };
|
||||
captures(val: string): undefined | { name: string; version?: string };
|
||||
};
|
||||
|
||||
export const isExtensionNameInstall = inputValidator({
|
||||
|
||||
@@ -72,7 +72,6 @@ interface Environment {
|
||||
export const getApplicationBuilder = () => {
|
||||
const { rendererDi, mainDi, runSetups } = getDisForUnitTesting({
|
||||
doGeneralOverrides: true,
|
||||
overrideCreateStorage: false,
|
||||
});
|
||||
|
||||
const dis = { rendererDi, mainDi };
|
||||
|
||||
Reference in new issue
Block a user