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

Error TS2380 on GC maxTimeSlice #154

Closed
wwhurley opened this issue Mar 15, 2022 · 3 comments
Closed

Error TS2380 on GC maxTimeSlice #154

wwhurley opened this issue Mar 15, 2022 · 3 comments

Comments

@wwhurley
Copy link

When compiling an application I'm getting the following error:

[TypeScript error: [path to frida-il2cpp-bridge]/dist/il2cpp/structs/gc.d.ts(12,6): Error TS2380: 'get' and 'set' accessor must have the same type.] {
  fileName: '[path to frida-il2cpp-bridge]/dist/il2cpp/structs/gc.d.ts',
  line: 12,
  column: 16
  inputs: Set() {
    [files]
  }
}

Reviewing gc.d.ts the issue appears to be on maxTimeSlice where the getter returns an Int64 where the setter takes number | Int64. There's some discussion of this issue for TypeScript at microsoft/TypeScript#2521. Or is there some workaround to this?

@vfsfitvnm
Copy link
Owner

Which TS version (or frida-compile) are you using? I can't reproduce

@wwhurley
Copy link
Author

[email protected]
[email protected]

Let me try updating to 4.6 and see if that fixes it. Or if you have a specific version of TypeScript that you use I'll switch to that.

@wwhurley
Copy link
Author

Okay, that did it. Thanks for the nudge on versions!

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

2 participants