实现一个通用的工具类型 CheckRepeatedChars<S> ,该类型用于判断 S 中是否包含重复字符。
CheckRepeatedChars<S>
S
例如:
type CheckRepeatedChars<'abc'> // expected to be false type CheckRepeatedChars<'aba'> // expected to be true
TypeScript