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

Own - have.own.property #24

Open
DaniBr opened this issue Jun 19, 2017 · 1 comment
Open

Own - have.own.property #24

DaniBr opened this issue Jun 19, 2017 · 1 comment

Comments

@DaniBr
Copy link

DaniBr commented Jun 19, 2017

This code is valid:
expect(element.attributes).to.have.own.property('data-a');
However, I get this type error:
test/t1.ts(42,44): error TS2339: Property 'own' does not exist on type 'Assertion'.

I'll suggest to add "own" to interface LanguageChains.

@unional
Copy link
Collaborator

unional commented Jun 19, 2017

PR welcome.
Also, chai is trying to add the typings to the library directly: chaijs/chai#822
When that happens, this and the DT version will be deprecated.

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