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
Is it possible to extend ProxyHandler interface? #3057
Comments
It looks like /**
* @extends {ProxyHandler}
* @record
*/
function MyProxyHandler() {}
/**
* @param {number} n
* @return {string}
*/
MyProxyHandler.prototype.myMethod = function(n) {}; What does your code look like? |
Extending ProxyHandler work only if we have no additional methods:
But if we add custom method extending ProxyHandler does not work:
|
@ikabirov thanks for the detailed repro. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'll try to write externs for Record from Immutable.js.
When class contains only get method it's ok, but it's ignored when object contains custom methods
The text was updated successfully, but these errors were encountered: