mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
documentation changes based on review
Co-Authored-By: shati-patel <42641846+shati-patel@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c8d60c9e2a
commit
b741a65e9b
@@ -2,7 +2,7 @@ var foo: MyInterface = 123 as any;
|
||||
|
||||
interface MyInterface {
|
||||
function (): number; // OK. Highly unlikely that it is an accident when there are other named methods in the interface.
|
||||
(): number; // OK: What was probaly meant above.
|
||||
(): number; // OK: What was probably meant above.
|
||||
new:() => void; // OK! This is a property, not a method, we ignore those.
|
||||
constructor(): string; // NOT OK! This a called "constructor"
|
||||
new(): Date; // OK! This a constructor signature.
|
||||
@@ -49,4 +49,4 @@ declare class Quz {
|
||||
}
|
||||
|
||||
var bla = new Foo();
|
||||
var blab = new Baz();
|
||||
var blab = new Baz();
|
||||
|
||||
Reference in New Issue
Block a user