mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
mention that "function" should not be used when declaring a call signature in an interface
This commit is contained in:
@@ -22,8 +22,8 @@ or interface member declaration declares a method named <code>function</code>.
|
||||
Declare classes as classes and not as interfaces.
|
||||
Use the keyword <code>constructor</code> to declare constructors in a class,
|
||||
use the keyword <code>new</code> to declare constructors inside interfaces,
|
||||
and don't use <code>function</code> when declaring an interface that is a
|
||||
function.
|
||||
and don't use <code>function</code> when declaring a call signature in an
|
||||
interface.
|
||||
</p>
|
||||
|
||||
</recommendation>
|
||||
|
||||
Reference in New Issue
Block a user