Using the find () method of es6 to report an error in ts

in the vue+ts project environment, using the find () method on an array in a fuction resulted in the following error:

clipboard.png

:

 

Aug.12,2021

this.historyCnnectData.find((item: any, index: number): boolean => {})

if a return value declaration is missing in your find callback, the default is void

.
Menu