---
source: crates/oxc_linter/src/tester.rs
---
  ⚠ typescript-eslint(no-unsafe-declaration-merging): Unsafe declaration merging between classes and interfaces.
   ╭─[no_unsafe_declaration_merging.tsx:2:14]
 1 │ 
 2 │             interface Foo {}
   ·                       ───
 3 │             class Foo {}
   ·                   ───
 4 │                   
   ╰────
  help: The TypeScript compiler doesn't check whether properties are initialized, which can cause lead to TypeScript not detecting code that will cause runtime errors.

  ⚠ typescript-eslint(no-unsafe-declaration-merging): Unsafe declaration merging between classes and interfaces.
   ╭─[no_unsafe_declaration_merging.tsx:2:19]
 1 │ 
 2 │                     class Foo {}
   ·                           ───
 3 │                     interface Foo {}
   ·                               ───
 4 │                           
   ╰────
  help: The TypeScript compiler doesn't check whether properties are initialized, which can cause lead to TypeScript not detecting code that will cause runtime errors.

  ⚠ typescript-eslint(no-unsafe-declaration-merging): Unsafe declaration merging between classes and interfaces.
   ╭─[no_unsafe_declaration_merging.tsx:3:25]
 2 │                     declare global {
 3 │                       interface Foo {}
   ·                                 ───
 4 │                       class Foo {}
   ·                             ───
 5 │                     }
   ╰────
  help: The TypeScript compiler doesn't check whether properties are initialized, which can cause lead to TypeScript not detecting code that will cause runtime errors.
