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

Cannot use instanceof on interfaces #195

Closed
vixalien opened this issue Aug 20, 2024 · 0 comments · Fixed by #214
Closed

Cannot use instanceof on interfaces #195

vixalien opened this issue Aug 20, 2024 · 0 comments · Fixed by #214

Comments

@vixalien
Copy link

The following code won't work.

const obj = {};
obj instanceof Gio.File;

/*
The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method.ts(2359)
*/
JumpLink added a commit that referenced this issue Nov 7, 2024
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 a pull request may close this issue.

1 participant