-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: Map.View.animate #286
Comments
@sgtcoolguy |
AFAIK the typescript generator has a hacky workaround for this issue, but i guess that breaks the creation dictionary since it doesn't include the I agree with you, we should rename this property so it doesn't conflict with the
|
Definitions for modules shouldn't be included in There are no workarounds in the generator and it can't generate correct definitions for external modules (but that's another question). As for the ugly hacks for typescript definitions, I just came up with this: type MapUglyHackDict = { animate?: boolean } & Omit<Dictionary<Map.View>, 'animate'>;
declare class Map extends Titanium.Module {
static createView(parameters?: MapUglyHackDict): Map.View;
// ...
} But this will help only for view creation, not for changing value later. |
Ah crap, you are right. I was thinking about this line here: But that's just a leftover from the early days when i wrote the typescript generator and it would include definitions for all modules that we bundle with the SDK. Ok, so now that i'm back on track let me give this another thought and i'll get back to you. |
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 classTi.UI.View
:It is impossible (in TypeScript) to override method with property.
The best solution would be to rename
Map.View
s property (for example toanimated
), otherwise we can't create correct/full definitions forti.map
module.The text was updated successfully, but these errors were encountered: