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

Open
vixalien opened this issue Aug 20, 2024 · 0 comments
Open

Cannot use instanceof on interfaces #195

vixalien opened this issue Aug 20, 2024 · 0 comments

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)
*/
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