documentation changes based on review

Co-Authored-By: shati-patel <42641846+shati-patel@users.noreply.github.com>
This commit is contained in:
Erik Krogh Kristensen
2019-10-04 14:42:16 +02:00
committed by GitHub
parent c8d60c9e2a
commit b741a65e9b
3 changed files with 8 additions and 8 deletions

View File

@@ -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();