Typescript Declare Function In Javascript With Parameters