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';

  selector: 'app-tab1',
  templateUrl: '',
  styleUrls: ['']
export class Tab1Page {

  constructor() {

  async checktext(){
    let resText:string;
   const worker = await Tesseract.createWorker();
      .then(({  text: resText }) => {