Lastor
@Lastor
說
Thu, Mar 17, 2022 8:05 AM
[Coding] 不能用 TS,靠 JSDoc 寫型別斷言真的要吐了
Lastor
@Lastor
Thu, Mar 17, 2022 8:06 AM
明明 ts 只要這樣就好......
const btns = xxx as any as HTMLElement[]
Lastor
@Lastor
Thu, Mar 17, 2022 8:07 AM
我記得以前 JSDoc 加個小括號就可以強行指定,好像被改掉了我去
載入新的回覆
const btns = xxx as any as HTMLElement[]