Skip to content

Fixed problems with inheritance

Latest
Compare
Choose a tag to compare
@bobkorinek bobkorinek released this 07 Dec 19:02
· 4 commits to master since this release

This version addresses problems with invalid inheritance types. Many of the classes have invalid type for theirs method from parent's class, which results in TypeScript errors. Some of the methods have been fixed without any problem, but many of the methods are redefined with completely different number of arguments. This had to be fixed with duplicating the method into multiple versions. For example method getCopyright doesn't accept any argument, but some classes redefine this method and add a zoom argument. For this reason, these classes have this method defined twice: once for the method with argument a second without the argument. This might cause a little chaos, but it was the only workaround for this type of problem.

Changes

  • Methods getContainer with void as return type now has object return type
  • Methods getCopyright have been duplicated for classes with problematic class inheritance and fixed theirs types.
  • Class SMap.Route now has defined methods from JAK.ISignals
  • Interface SMap.IOwned now accepts owners based on the new created generic type.
  • Constructor's second argument conf of class SMap.Control.Scale has been renamed to conf2 due to duplicate argument name.
  • Constructor's last argument config of class SMap.Projection.Oblique has been renamed to config2 due to duplicate argument name.