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

I can't override method. #63

Closed
YuichiNukiyama opened this issue Feb 6, 2016 · 2 comments
Closed

I can't override method. #63

YuichiNukiyama opened this issue Feb 6, 2016 · 2 comments

Comments

@YuichiNukiyama
Copy link
Contributor

I want override ClipboardEvent.
So, I change overridingTypes.json and then run bat.
But, Nothing is occured.

{
        "kind": "method",
        "interface": "HTMLElement",
        "name": "onbeforecopy",
        "signatures": ["onbeforecopy: (ev: ClipboardEvent) => any"]
}

This promlem has occured at removeTypes.json.
Lib.d.ts addEventListener should specify ClipboardEvent payload for relevant events #5363

@mhegazy
Copy link
Contributor

mhegazy commented Feb 9, 2016

It is originally not defined as a method, but as a property. @zhengbli what is the recommendation here?

@YuichiNukiyama
Copy link
Contributor Author

@mhegazy
Thank's for your advise.It's my careless mistake. I was able to run if modified as follows.

    {
        "kind": "property",
        "interface": "HTMLElement",
        "name": "onbeforecopy",
        "type": "(ev: ClipboardEvent) => any"
    }

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