Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

fix(types): fix types for element.all(...) #3656

Merged
merged 1 commit into from
Oct 26, 2016
Merged

fix(types): fix types for element.all(...) #3656

merged 1 commit into from
Oct 26, 2016

Conversation

thorn0
Copy link
Contributor

@thorn0 thorn0 commented Oct 24, 2016

Currently. all is marked as optional. It means all can be undefined, which isn't true. For this reason, it's impossible now to use element.all with TS 2.x if strictNullChecks is true. Simple code like

element.all(by.css('.info'))

leads to an error: Object is possibly 'undefined'.

@thorn0
Copy link
Contributor Author

thorn0 commented Oct 24, 2016

I will rebase this after #3650 is merged. Travis won't be green till then.

@thorn0
Copy link
Contributor Author

thorn0 commented Oct 25, 2016

Rebased, but something still fails on Travis. Seems unrelated to my commit.

@cnishina cnishina merged commit 3e4bc27 into angular:master Oct 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants