TheSwordBreaker
TheSwordBreaker
Explore posts from servers
DTDrizzle Team
Created by TheSwordBreaker on 10/16/2024 in #help
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) {
...
}
function helper(db , tables){
const helperFunction = () => ...
const helperFunction2 = () => ...
retrun {
helperFunction,
helperFunction2
}
}

function helper(db, tables1, table2) {
...
}
how to do typeScript for it
4 replies