-
Notifications
You must be signed in to change notification settings - Fork 0
Ignoring TypeScript errors
Jorge Castro edited this page Nov 10, 2025
·
1 revision
Caution
Please keep in mind that ignoring TypeScript errors is not recommended in most scenarios.
If you have no other choice than to ignore a TypeScript error in your code because of external libraries, here are some utilities to hide the errors in your code.
Add this option in the tsconfig.json file
noImplicitAny: trueAdd a // @ts-ignore comment above the line.
// @ts-ignore
const result = 12 + true;- Sync-Obsidian-with-GitHub-on-iOS
- Obsidian-community-plugins
- Optimizing-Novel-Word-Count-Plugin-for-Git-Users
- What is TypeScript, and why you should use it
- Quick setup
- Inference and type annotations
- Fundamental Types
- Object Types
- Union Types
- Type Aliases and Interfaces
- Type Assertions
- Literal Types
- null and undefined
- Narrowing
- Creating Types from Types
- Common Built‐in and Utility Types
- tsc CLI ‐ (The Compiler)
- Avoid using Object or {}
- Ignoring TypeScript errors
- TypeScript resources