mention that "function" should not be used when declaring a call signature in an interface

This commit is contained in:
Erik Krogh Kristensen
2019-10-04 15:05:11 +02:00
parent bf1fd83851
commit 144e831515

View File

@@ -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>