func
func(
name,options?):FunctionDecl
func creates a new function declaration with a set of TypeScript option objects to configure overloads and function definitions (implementations).
Functions are checked for name collisions and singleton redefinition.
Parameters
Section titled “Parameters”string
options?
Section titled “options?”FunctionDeclOptions = {}