Need help ionic tesseract.js

Hello. I am trying to implement OCR in my application and I am facing an error. The error is, “Property ‘text’ does not exist on type ‘RecognizeResult’.ts(2339)”. I am not sure how to solve. Thank you very much.

import { Component } from '@angular/core';
import * as Tesseract from 'tesseract.js';

@Component({
  selector: 'app-tab1',
  templateUrl: 'tab1.page.html',
  styleUrls: ['tab1.page.scss']
})
export class Tab1Page {

  constructor() {



  }
  async checktext(){
    let resText:string;
   const worker = await Tesseract.createWorker();
    worker.recognize('assets/image.png')
      .then(({  text: resText }) => {
        console.log(resText);
      });
  }

}