remove unnecessary | undefined types from the exactOptionalFieldTypes experiment

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-05-05 09:26:35 -04:00
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 };