-
Notifications
You must be signed in to change notification settings - Fork 142
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
Typings for typescript #169
Conversation
@mkusher - thanks for putting this together! When I run my tests, I do the following errors though: ERROR in [default] /Users/orazyto/Documents/RapidPrototype/test_project/node_modules/testdouble/index.d.ts:4:2 ERROR in [default] /Users/orazyto/Documents/RapidPrototype/test_project/node_modules/testdouble/index.d.ts:4:3 ERROR in [default] /Users/orazyto/Documents/RapidPrototype/test_project/node_modules/testdouble/index.d.ts:4:8 |
@orazyto you are using typescript |
@mkusher - you are right, my mistake. |
@orazyto oh, I see. Well, I've removed this mapped type for arrays, they are untyped now. Can you check the branch now? |
@mkusher - Thanks! It's working now with Typescript 2.0 in my Angular2 project :-) |
@orazyto ;) |
Two questions:
|
|
Is |
@searls from documentation:
|
neato, looks good |
Landed in 1.10.1 |
Resolves #167
I'm not sure about how to test it properly in your configuration, but it looks like my variant would be ok.
I've added feature from new ts 2.1, but it's only needed for one case
td.object(['a', 'b'])
. Also not sure what to add into README.md.