Skip to content

API: Map.View.animate #286

@drauggres

Description

@drauggres

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions