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

feat(in-app-purchase-2): update TypeScript definitions #3037

Merged
merged 1 commit into from
Jun 3, 2019

Conversation

j3k0
Copy link
Contributor

@j3k0 j3k0 commented May 27, 2019

Hey, I'm the maintainer of cordova-plugin-purchase, the cordova plugin used by in-app-purchase-2. I made some changes requested by users to the TypeScript definition, but I'm not ionic developer, I'm new to TypeScript, and don't know how to test the changes ;-)

Looks simple and it should probably work, but it'd be better to actually try it!

On a different note: how to update the page https://ionicframework.com/docs/native/in-app-purchase-2 ? The plugin now supports macOS and Microsoft UWP, plus it'd be nice to show more documentation, I can probably help with that.

@danielsogl danielsogl self-assigned this May 27, 2019
@danielsogl danielsogl added the target: patch This PR is targeted for the next patch release label May 27, 2019
@danielsogl danielsogl merged commit 4ae35cb into danielsogl:master Jun 3, 2019
@paulstelzer
Copy link
Contributor

@j3k0 thanks for your PR! I tested with new version 5.7.0 of ionic native but I have a problem with it :)

All your properties are set as REQUIRED. So is it really necessary to add every property? If not (and I think it's not required), make the properties optional. For example:

lastRenewalDate?: Date;

It's easy by adding the question mark (https://www.typescriptlang.org/docs/handbook/interfaces.html)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants