Skip to content
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

Objective-C Typed Parameters #287

Open
DreamingInBinary opened this issue Feb 14, 2023 · 0 comments
Open

Objective-C Typed Parameters #287

DreamingInBinary opened this issue Feb 14, 2023 · 0 comments

Comments

@DreamingInBinary
Copy link

We are using Typewriter for Objective-C, which as I understand it - requires ~Typerwriter 7.x. In the docs here, it mentions that...

If you use a statically typed language (such as TypeScript, Java, Objective-C, or Swift), you get access to compile-time warnings about your instrumentation

The image below that except shows the compiler flagging a parameter supplying the wrong type (a string instead of a number).

As far as I can tell, all Objective-C parameters are generated as Strings, regardless of what data type the tracking plan dictates. Here's an example of our output, even though some of these parameters aren't string types in our plan:

+ (void)widgetAddedWithClientId:(nullable NSString *)clientId
clientName:(nonnull NSString *)clientName
organizationId:(nonnull NSString *)organizationId
widgetName:(nonnull NSString *)widgetName
widgetSize:(nullable NSString *)widgetSize;

Is there a way for Typewriter to generate strongly typed parameters according to their tracking plan counterparts data type?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant