2023-05-03 11:06:20 +02:00
|
|
|
== Why is this an issue?
|
|
|
|
|
2020-06-30 12:49:37 +02:00
|
|
|
include::description.adoc[]
|
|
|
|
|
2023-05-25 14:18:12 +02:00
|
|
|
=== Noncompliant code example
|
|
|
|
|
|
|
|
[source,text]
|
|
|
|
----
|
|
|
|
interface MyInterface {
|
|
|
|
doTheThing(): number;
|
|
|
|
doTheOtherThing(): string;
|
|
|
|
doTheThing(str: string): string; // Noncompliant
|
|
|
|
}
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
=== Compliant solution
|
|
|
|
|
|
|
|
[source,text]
|
|
|
|
----
|
|
|
|
interface MyInterface {
|
|
|
|
doTheThing(): number;
|
|
|
|
doTheThing(str: string): string;
|
|
|
|
doTheOtherThing(): string;
|
|
|
|
}
|
|
|
|
----
|
2020-06-30 12:49:37 +02:00
|
|
|
|