Skip to content

[iOS/Android] 🔥 Typescript check fails for most files #138

@qreoct

Description

@qreoct
  • Platform that you're experiencing the issue on:

    • iOS
    • Android
  • @kilohealth/rn-fitness-tracker version you're using that has this issue:

    • 3.1.0

Issue

Thanks for this library.

One of my commit hooks runs tsc and I consistently get error TS2366 triggering.
image

For now my workaround is just to disable the Typescript check, but I would like a fix.

Using //@ts-nocheck or //@ts-ignore to ignore the file with the import statements doesn't seem to work either.
I've also tried setting noImplicitReturns to false in tsconfig but that has no effect.


Environment

Click To Expand

react-native info output:

System:
  OS: Windows 10 10.0.19044
  CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Memory: 1.04 GB / 15.85 GB
Binaries:
  Node:
    version: 18.18.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.10
    path: ~\AppData\Roaming\npm\yarn.CMD
  npm:
    version: 9.6.6
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-223.8836.35.2231.10811636
  Visual Studio: Not Found
Languages:
  Java:
    version: 11.0.9
    path: /c/Program Files/Common Files/Oracle/Java/javapath/javac
  Ruby:
    version: 3.0.3
    path: C:\Users\[user]\Ruby30-x64\bin\ruby.EXE
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.5
    wanted: 0.72.5
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found
  • Are you using TypeScript?
    • Yes, 5.1.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions