-1

I am using Angular 12 and this code below is complaining.

this.recorder.ondataavailable = (event: { data: any; }) => {
  this.recordedChunks.push(event.data);
};

Typescript is giving me this error:

Argument of type 'any' is not assignable to parameter of type 'never'.ts(2345)
(parameter) event: {
    data: any;
}
deszok
  • 145
  • 2
  • 14

1 Answers1

-1

All you have to do is define your result as a string array, like the following:

data : any[];