Просмотр исходного кода

chore: Remove duplicate union types (#35251)

Alberto Leal 2 лет назад
Родитель
Сommit
68111ab8f5

+ 1 - 1
static/app/components/actions/actionLink.tsx

@@ -28,7 +28,7 @@ type ConfirmableActionProps = React.ComponentProps<typeof ConfirmableAction>;
 
 type CommonProps = Omit<
   ConfirmableActionProps,
-  'onConfirm' | 'confirmText' | 'children' | 'stopPropagation' | 'priority' | 'children'
+  'onConfirm' | 'confirmText' | 'children' | 'stopPropagation' | 'priority'
 > & {
   children: React.ReactChild;
   title: string;

+ 1 - 6
static/app/components/contextData/index.tsx

@@ -42,12 +42,7 @@ function walk({
   value: Value;
 } & Pick<
   Props,
-  | 'withAnnotatedText'
-  | 'preserveQuotes'
-  | 'jsonConsts'
-  | 'meta'
-  | 'maxDefaultDepth'
-  | 'jsonConsts'
+  'withAnnotatedText' | 'preserveQuotes' | 'jsonConsts' | 'meta' | 'maxDefaultDepth'
 >) {
   let i = 0;
 

+ 0 - 1
static/app/types/breadcrumbs.tsx

@@ -93,7 +93,6 @@ export type BreadcrumbTypeDefault = {
     | BreadcrumbType.INIT
     | BreadcrumbType.SESSION
     | BreadcrumbType.SYSTEM
-    | BreadcrumbType.SESSION
     | BreadcrumbType.TRANSACTION;
   data?: Record<string, any>;
 } & BreadcrumbTypeBase;