TypeScript “Gotchas” Part 1

Using // @ts-ignore:

I am starting to use TypeScript and have ran into issues with unrecognizable functions used. Here is what I did to help get past it.

    // @ts-ignore: multi-select could not find
    var panel = $('#myId').multiselect({

by using the // @ts-ignore: (comment) I was able to ignore the “.multiselect” function for TypeScript to Recognize.

Leave a comment