I am looking for something like Set but with just a compile-time check possibly with Array interface, consider this:
const arr = Unique<string[]>['x','y','z']
if(arr.includes('x')){...}
Now I want TS compiler errors on this, saying, duplicate values are not allowed:
const arr = Unique<string[]>['x','x','z']
if(arr.includes('x')){...}
Any idea?