Yao Zhao

Results 80 comments of Yao Zhao

> > I encountered another case, and think maybe this issue still should be considred to be about the `getMarkRange`. > > Is it related to the hard break? It...

@slikts so what's your solution or workaround at this time? We faced similar problem :(

If you are using a monorepo with yarn workspace, try applying nohoist on tsdx ``` "workspaces": { "packages": [ ...], "nohoist": [ "**/tsdx", "**/tsdx/**" ] }, ``` see https://classic.yarnpkg.com/blog/2018/02/15/nohoist/

@Paratron wow, is there a v2 on the road? Can't wait for that. I love this lib with some worry about the long-time-no-updating.

My solution is using a middle generic argument `M` to hold the intersection: ```ts type AppendToObject = { [P in keyof M]: M[P] } ``` see https://github.com/type-challenges/type-challenges/issues/19060

```ts type WithPrefix = S extends [] ? '' : `${P}${S[number]}` type BEM = `${B}${WithPrefix}${WithPrefix}` ``` see https://github.com/type-challenges/type-challenges/issues/19651

my long verion solution: https://github.com/type-challenges/type-challenges/issues/18854 ```ts type TCapitalMap = { 'a': 'A', 'b': 'B', 'c': 'C', 'd': 'D', 'e': 'E', 'f': 'F', 'g': 'G', 'h': 'H', 'i': 'I', 'j': 'J',...

I wrote a short and long versions of solutions for this challenge with more explanation: https://github.com/type-challenges/type-challenges/issues/19437 中文笔记:https://juejin.cn/post/7167664060547203108/

Thanks for your contribution! I wrote a Chinese detailed explanatation for anyone need it: https://juejin.cn/post/7165170011282079751