File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -754,7 +754,7 @@ interface CommonTabArgsType {
754
754
isSelected : boolean
755
755
title ?: string
756
756
isDeleted ?: boolean
757
- position : number
757
+ type : 'fixed' | 'dynamic'
758
758
iconPath ?: string
759
759
dynamicTitle ?: string
760
760
showNameOnSelect ?: boolean
@@ -782,9 +782,19 @@ interface CommonTabArgsType {
782
782
shouldRemainMounted ?: boolean
783
783
}
784
784
785
- export interface InitTabType extends CommonTabArgsType {
786
- idPrefix : string
787
- }
785
+ export type InitTabType = Omit < CommonTabArgsType , 'type' > &
786
+ (
787
+ | {
788
+ type : 'fixed'
789
+ id : string
790
+ idPrefix ?: never
791
+ }
792
+ | {
793
+ type : 'dynamic'
794
+ id ?: never
795
+ idPrefix : string
796
+ }
797
+ )
788
798
789
799
export interface DynamicTabType extends CommonTabArgsType {
790
800
id : string
You can’t perform that action at this time.
0 commit comments