题解 - Medium28333 - Public TypeOn this page28333 - Public TypeAnswer TestCases从给定类型 T 中删除以 _ 开头的键。例如:type CheckRepeatedTuple<[1, 2, 3]> // falsetype CheckRepeatedTuple<[1, 2, 1]> // trueSolutiontype PublicType<T extends object> = { [K in keyof T as K extends `_${string}` ? never : K]: T[K]}