Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit f93804f

Browse files
authored
Merge pull request #1 from vovanmozg/interfaces-example-patch-1
Suggestion for a new code example
2 parents 95b6ad9 + ecdb35b commit f93804f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pages/Interfaces.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -502,20 +502,21 @@ interface SelectableControl extends Control {
502502
select(): void;
503503
}
504504

505-
class Button extends Control {
505+
class Button extends Control implements SelectableControl {
506506
select() { }
507507
}
508508

509509
class TextBox extends Control {
510-
select() { }
510+
511511
}
512512

513-
class Image {
513+
// Error: Property 'state' is missing in type 'Image'.
514+
class Image implements SelectableControl {
514515
select() { }
515516
}
516517

517518
class Location {
518-
select() { }
519+
519520
}
520521
```
521522

0 commit comments

Comments
 (0)