Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

fix(typings): remove union type of testAction #3

Merged
merged 1 commit into from
Dec 6, 2016

Conversation

Brooooooklyn
Copy link
Member

没有必要写复杂的联合类型,会带来额外的麻烦。
比如:

// typeError, No best common type exists among yield expressions.
it('test should pass', function *() {
   yield Promise.resolve(1)
   yield Observable.of(1)
})

直接自动推断为 any 就好了

@coveralls
Copy link

coveralls commented Nov 23, 2016

Coverage Status

Coverage remained the same at 91.255% when pulling 7a93feb on Brooooooklyn:issue/typings into 30e06c8 on thunks:master.

@Brooooooklyn
Copy link
Member Author

@zensh

@zensh zensh merged commit e690acb into thunks:master Dec 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants