sajad torkamani
function logMessage(message: string) {
   // ...
}

type Arg = Parameters<typeof logMessage>[0]

TS Playground