Avatar ·

How to disable a TypeScript rule for a specific line?

Hi everyone! I'm new to TypeScript and ran into a problem. I have a project using jQuery + Summernote (text editor), and I'm migrating it to TypeScript. In one place, I need to access an internal property of Summernote that isn't described in the types. Here's my code: ```typescript const editor = $('#summernote'); const summernoteInstance = editor.summernote('code'); // need to access a private property here const editableDiv = editor.data('summernote').$editable; ``` TypeScript complains about `editor.data('summernote')` — it says `data` returns `any`, and then `.$editable` is an error. I understand this is a hack, but Summernote doesn't provide a public API for this, and I need to get the editor's DOM element. I know I can use `// @ts-ignore`