mo
mo
my answer is here: `type Replace = Str extends `${infer LeftStr}${originStr}${infer rightStr}` ? `${LeftStr}${TargetStr}${rightStr}` : never`
`type Last = arr extends [...leftProps: any[], infer L] ? L : never` this is also working
`type Pop = arr extends [...infer leftArr, any] ? leftArr : never`
> ```ts > type Pop = T extends [...infer U, any] ? U : never > type Push = [...T, U] > type Shift = T extends [any, ...infer U]...
也遇到了嵌套子表格,展开后,固定列错位问题 @tangjinzhou
`type TrimRight = str extends `${infer rightStr} ` ? TrimRight : str`