aikoven / typescript-fsa

Type-safe action creator utilities
MIT License
607 stars 28 forks source link

Update to node 10 in .travis.yml #60

Closed aikoven closed 6 years ago

suutari-ai commented 6 years ago

Travis is complaining this:

tests/index.ts (146,18): Cannot invoke an expression whose type lacks a call signature. Type 'ActionCreator<Failure<{ foo: string; }, any>>' has no compatible call signatures. (2349)

Are you sure that the test is correct?

The mentioned test line https://github.com/aikoven/typescript-fsa/blob/7d2b11df281974f14c37b01bb4f7e39b35407383/tests/index.ts#L146 doesn't seem correct to me because the type for errors is specified as {bar: string} (on line 129), but the test line passes in a string.

aikoven commented 6 years ago

@suutari-ai Fixed in another commit