Skip to content

Conversation

@tpluscode
Copy link

I propose a generic argument added to the matchers, so that the callback can be typed if desired, thus making the usage easier.

Using the types from DT, I could write:

expect(objects).to.containAll<PropertyObjectState>(obj => obj.selectedEditor?.value === dash.TextFieldEditor.value)

having obj be of the given type.

I propose a generic argument added to the matchers, so that the callback can be typed if desired, thus making the usage easier.

Using the types from DT, I could write:

```ts
expect(objects).to.containAll<PropertyObjectState>(obj => obj.selectedEditor?.value === dash.TextFieldEditor.value)
```

having `obj` be of the given type.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 134

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 132: 0.0%
Covered Lines: 18
Relevant Lines: 18

💛 - Coveralls

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

Successfully merging this pull request may close these issues.

2 participants