Advertisement
Guest User

Untitled

a guest
May 25th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. type SomeType = [number, number, number]; // Should be an array of exactly 3 numbers
  2.  
  3. interface IThing {
  4. someThing: SomeType
  5. }
  6.  
  7. abstract class SomeClass {
  8. abstract getThing(): IThing;
  9. }
  10.  
  11. class ConcreteClass extends SomeClass {
  12. getThing() {
  13. return {
  14. someThing: [4, 2, 2];
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement