Bug Fix
Typings
move function declarative type to common js typedefs file and convert to typedef to satisfy jsdoc generation