Hello there.
I'm still going through documentation and APIs in order to build compelte and correct TypeScript definitions for Titanium SDK and its modules.
The problem for today is API inconsistency between Map.View and its parent class Ti.UI.View:
namespace Titanium {
namespace UI {
class View extends Titanium.Proxy {
animate(animation: Titanium.UI.Animation | Dictionary<Titanium.UI.Animation>, callback?: (param0: any) => void): void;
}
}
}
namespace Map {
class View extends Titanium.UI.View {
animate: boolean;
}
}
It is impossible (in TypeScript) to override method with property.
The best solution would be to rename Map.Views property (for example to animated), otherwise we can't create correct/full definitions for ti.map module.
Hello there.
I'm still going through documentation and APIs in order to build compelte and correct TypeScript definitions for Titanium SDK and its modules.
The problem for today is API inconsistency between
Map.Viewand its parent classTi.UI.View:It is impossible (in TypeScript) to override method with property.
The best solution would be to rename
Map.Views property (for example toanimated), otherwise we can't create correct/full definitions forti.mapmodule.