Only properties of an object are enforced. This needs to be extended to interfaces and class properties (if possible).