I'm a Typescript new learner, and I wonder how to achieve the following type? Is it possible or not? any help would be appreciated, thank you.
type step = 'STEP_1' | 'STEP_2' | 'STEP_3' | 'STEP_4';
// Q: how to define this type, to achieve below effect?
type stepsNoDuplicatedType = ??
// let ts check ok:
const steps: stepsNoDuplicatedType = ['STEP_1' , 'STEP_2', 'STEP_3' , 'STEP_4'];
const stepsFinished: stepsNoDuplicatedType = ['STEP_1' , 'STEP_2'];
// let ts check fail, due to 'STEP_1' duplicated:
const steps: stepsNoDuplicatedType = ['STEP_1' , 'STEP_2', 'STEP_3' , 'STEP_4', 'STEP_1'];
const stepsFinished: stepsNoDuplicatedType = ['STEP_1' , 'STEP_2', 'STEP_1'];