Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Oct 19, 2022
1 parent 944a5a4 commit 231ff6f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -9,7 +9,7 @@ description: 'Disallow unsafe declaration merging.'
TypeScript's "declaration merging" supports merging separate declarations with the same name.

Declaration merging between classes and interfaces is unsafe.
TypeScript compiler doesn't check whether properties are initialized, which can cause lead to TypeScript not detecting code that will cause runtime errors.
The TypeScript compiler doesn't check whether properties are initialized, which can cause lead to TypeScript not detecting code that will cause runtime errors.

```ts
interface Foo {
Expand Down Expand Up @@ -39,7 +39,7 @@ class Foo {}

```ts
interface Foo {}
class Bar extends Foo {}
class Bar implements Foo {}

namespace Baz {}
namespace Baz {}
Expand Down

0 comments on commit 231ff6f

Please sign in to comment.