Skip to content
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

fix(cordova-plugin-inappbrowser): add missing entry of InAppBrowser to Cordova interface #17192

Merged
merged 2 commits into from Jun 19, 2017

Conversation

timbru31
Copy link
Contributor

This PR adds the missing interface entry of InAppBrowser to Cordova in order to fix Property 'InAppBrowser' does not exist on type 'Cordova'.
Besides that it enables linting of the types and fixes the reported errors.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).

Select one of these and delete the others:

If changing an existing definition:

@timbru31
Copy link
Contributor Author

Does anyone know what's wrong with @dt-bot?
Nevertheless, I'm manually pinging the people involved with prior versions: @matrosov-nikita, @yuit, @billti

* name/value pairs must be separated by a comma. Feature names are case insensitive.
*/
open(url: string, target?: string, options?: string, replace?: boolean): InAppBrowser;
open(url: string, target?: target | string, options?: string, replace?: boolean): InAppBrowser;
Copy link
Contributor

Choose a reason for hiding this comment

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

target | string is the same type as string . If you don't care for the overloads I suggest removing target altogether.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@sandersn sandersn merged commit 5d0e5d7 into DefinitelyTyped:master Jun 19, 2017
@timbru31 timbru31 deleted the fix-cordova-inappbrowser branch June 19, 2017 23:11
janpio pushed a commit to apache/cordova-plugin-inappbrowser that referenced this pull request Oct 2, 2018
### Platforms affected
n/a - development with TypeScript

### What does this PR do?
Updates the typings to match the latest published version on DefinitelyTyped.  
See DefinitelyTyped/DefinitelyTyped#17192 and https://stackoverflow.com/q/42095516/1902598

### What testing has been done on this change?
Project compiles again ;)

### Checklist
- [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database
- [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
- n/a: Added automated test coverage as appropriate for this change.

fixes #300
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.

None yet

3 participants