TS報錯Binding element 'column' implicitly has an 'any' type的一種解決方法
(認知有限,如有不妥,還望告知,歡迎討論)
問題產(chǎn)生背景:使用外部參數(shù)改變單元格的樣式
報錯部分代碼:
解決方法:
聲明參數(shù)類型?
const grayColor = ({ column }:{column:any})
=END=
=Reference=
[1] https://stackoverflow.com/questions/40745992/binding-element-index-implicitly-has-an-any-type
標簽: