Typescript Typeerror Is Not A Function Jquery Ui