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

improve hasOwnProperty types #4

Closed
mdbetancourt opened this issue Nov 10, 2021 · 1 comment
Closed

improve hasOwnProperty types #4

mdbetancourt opened this issue Nov 10, 2021 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@mdbetancourt
Copy link

interface Object {
    /**
     * Determines whether an object has a property with the specified name.
     * @param v A property name.
     */
    hasOwnProperty<Key extends PropertyKey>(v: Key): this is this & Record<Key, unknown>;
}
@uhyo uhyo added the enhancement New feature or request label Nov 18, 2021
@uhyo uhyo added this to the 2.0.1 milestone Nov 18, 2021
@uhyo uhyo closed this as completed in b864600 Apr 29, 2022
@uhyo
Copy link
Owner

uhyo commented Apr 29, 2022

Thank you, fixed in 2.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants