Skip to content

Fix type checking errors for GitHub workflow - #12

Open
cagnulein wants to merge 4 commits into
mainfrom
claude/fix-workflow-types-cd9CY
Open

Fix type checking errors for GitHub workflow#12
cagnulein wants to merge 4 commits into
mainfrom
claude/fix-workflow-types-cd9CY

Conversation

@cagnulein

Copy link
Copy Markdown
Owner

Add explicit type annotations to resolve strict type checking errors
that occur in the GitHub workflow CI/CD pipeline. Changes include:

  • CommsRelay.mc: Add types for mCallback and method parameters
  • Log.mc: Add types for logLevel and all message parameters
  • QZCompanionGarminDelegate.mc: Add type for session variable
  • QZCompanionGarminView.mc: Add types for all member variables and
    add null checks before accessing Activity info properties

These changes ensure compatibility with strict type checking while
maintaining backward compatibility with existing functionality.

claude added 4 commits January 7, 2026 05:23
Add explicit type annotations to resolve strict type checking errors
that occur in the GitHub workflow CI/CD pipeline. Changes include:

- CommsRelay.mc: Add types for mCallback and method parameters
- Log.mc: Add types for logLevel and all message parameters
- QZCompanionGarminDelegate.mc: Add type for session variable
- QZCompanionGarminView.mc: Add types for all member variables and
  add null checks before accessing Activity info properties

These changes ensure compatibility with strict type checking while
maintaining backward compatibility with existing functionality.
Remove return type annotations from initialize() constructors and
remove explicit type annotations from local variables, as these are
not allowed in MonkeyC:
- Constructors cannot have return type annotations
- Local variable types are inferred, not explicitly declared

Changes:
- CommsRelay.mc: Remove 'as Void' from initialize()
- Log.mc: Remove 'as Void' from initialize()
- QZCompanionGarminView.mc: Remove 'as String' from local vars
Add :disableGps=>true parameter to both indoor running and cycling
activity recording sessions. This saves battery life since GPS is
not needed for indoor workouts.

Merged changes from PR #11
MonkeyC requires all basic types to be qualified with the Lang prefix.
Changed:
- Number -> Lang.Number
- String -> Lang.String
- Float -> Lang.Float
- Boolean -> Lang.Boolean
- Array -> Lang.Array
- Dictionary -> Lang.Dictionary

This fixes "Cannot resolve type" errors in the workflow build.
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

Successfully merging this pull request may close these issues.

2 participants