Skip to content

Commit 144e831

Browse files
committed
mention that "function" should not be used when declaring a call signature in an interface
1 parent bf1fd83 commit 144e831

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/Declarations/SuspiciousMethodNameDeclaration.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ or interface member declaration declares a method named <code>function</code>.
2222
Declare classes as classes and not as interfaces.
2323
Use the keyword <code>constructor</code> to declare constructors in a class,
2424
use the keyword <code>new</code> to declare constructors inside interfaces,
25-
and don't use <code>function</code> when declaring an interface that is a
26-
function.
25+
and don't use <code>function</code> when declaring a call signature in an
26+
interface.
2727
</p>
2828

2929
</recommendation>

0 commit comments

Comments
 (0)