type definition for tables in customer function

I am Making helper function which need two args like


function helper(db , tables){
  const helperFunction = () => ...
  const helperFunction2 = () => ...
  retrun  {
    helperFunction, 
    helperFunction2
  }
}

function helper(db, tables1, table2) {
 ... 
}


how to do typeScript for it
Was this page helpful?