Skip to content

Conversation

@balukov
Copy link

@balukov balukov commented Feb 28, 2020

Add 'void' and 'numbers' types for functions

@wswebcreation wswebcreation self-requested a review February 28, 2020 09:31
types/index.d.ts Outdated
@@ -1,43 +1,43 @@
declare module WebdriverIO {
interface Browser {
/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the Pr, the output is not 100% correct, it also depends on what the config was, please check https://github.com/wswebcreation/wdio-image-comparison-service#test-result-outputs, can you also add that

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please check now: f295c91
I try to consider all the options.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, did you verify if it works? If so I can merge it and release it.

Thanks for the work

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, it looks good but works bad =)
It's always choosing number.
There are two options:
simple - use any for check functions,
complicated - we can divide check(...): number and check(...): {} but values which function takes should differ functions. This complicates to do because of parameter returnAllCompareData in the config and we can know it just in compile time.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created a new PR with all the types, can you take a look at it? #27

Tnx

@wswebcreation wswebcreation mentioned this pull request Mar 7, 2020
@wswebcreation
Copy link
Member

wswebcreation commented Mar 11, 2020

Closing this in favor of #27

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