Typescript Declare Function In Javascript Mdn