When writing Typescript functions, what is considered the standard approach? For instance, which of the following three options is preferred:
// Option 1
function myFunction (a: string) {}
// Option 2
function myFunction ({ a }: { a: string }) {}
// Option 3
interface IMyFunction {
a: string
}
function myFunction (input: IMyFunction) {}
Would the choice change if there were three variables instead?
Where can one find reliable reference materials for resolving queries like these?