Skip to content

Commit c8057f9

Browse files
authored
Merge pull request #10407 from IgniteUI/mevtimov/fix-10406-master
IgxStepper string enums
2 parents 5e6892b + 7a4a462 commit c8057f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

projects/igniteui-angular/src/lib/stepper/stepper.common.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,29 +118,29 @@ export interface IStepChangedEventArgs extends IBaseEventArgs {
118118
export const IgxStepperOrientation = {
119119
Horizontal: 'horizontal',
120120
Vertical: 'vertical'
121-
};
121+
} as const;
122122
export type IgxStepperOrientation = (typeof IgxStepperOrientation)[keyof typeof IgxStepperOrientation];
123123

124124
export const IgxStepType = {
125125
Indicator: 'indicator',
126126
Title: 'title',
127127
Full: 'full'
128-
};
128+
} as const;
129129
export type IgxStepType = (typeof IgxStepType)[keyof typeof IgxStepType];
130130

131131
export const IgxStepperTitlePosition = {
132132
Bottom: 'bottom',
133133
Top: 'top',
134134
End: 'end',
135135
Start: 'start'
136-
};
136+
} as const;
137137
export type IgxStepperTitlePosition = (typeof IgxStepperTitlePosition)[keyof typeof IgxStepperTitlePosition];
138138

139139
export const VerticalAnimationType = {
140140
Grow: 'grow',
141141
Fade: 'fade',
142142
None: 'none'
143-
};
143+
} as const;
144144
export type VerticalAnimationType = (typeof VerticalAnimationType)[keyof typeof VerticalAnimationType];
145145

146146
// Token

0 commit comments

Comments
 (0)