Re:Typescript: class vs. interface
by ThePadawan on Tuesday February 27, 2018 @12:30PM
(#16475683)
Note that it's only misleading due to the ambiguous grammar:
The sentence can be read as
"You’re saying that any object given this contract must be an object containing 2 properties (the object may contain no more, no less)"
or
"You’re saying that any object given this contract must be an object containing 2 properties (you are saying no more, no less)".
The sentence can be read as "You’re saying that any object given this contract must be an object containing 2 properties (the object may contain no more, no less)"
or
"You’re saying that any object given this contract must be an object containing 2 properties (you are saying no more, no less)".