fix(ping-protect): fixes type for PIProtect.start() options object#573
Closed
tnt-glenn-mccomb wants to merge 1 commit intoForgeRock:developfrom
Closed
fix(ping-protect): fixes type for PIProtect.start() options object#573tnt-glenn-mccomb wants to merge 1 commit intoForgeRock:developfrom
tnt-glenn-mccomb wants to merge 1 commit intoForgeRock:developfrom
Conversation
🦋 Changeset detectedLatest commit: 82bd6e3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
@tnt-glenn-mccomb thank you for the contribution. We had an error in our fork ci flow that is causing this to fail. I rebased your PR and re-opened it and it worked. You can feel free to rebase this, or we can just move forward with the PR that I created (your commits are still there). I'll get someone to review it for me as well. This looks good though. |
Contributor
|
Closed and merged with your commits in #575 |
Contributor
Author
|
Awesome thank you @ryanbas21 sounds like a good solution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JIRA Ticket
N/A
Description
While working on a component to handle Ping One Protect using
@forgerock/javascript-sdk, I found that after updating to the latest version of@forgerock/ping-protect(eg.4.6.2) I starting to see unexpected TypeScript errors when I attempted to pull Ping One config from aPingOneProtectInitializeCallbackcallback viaPingOneProtectInitializeCallback.getConfig(). This is expected to return an object with the following type:This works fine in version
4.6.1of@forgerock/ping-protect, however in4.6.2when I attempt to pass the result ofPingOneProtectInitializeCallback.getConfig()toPIProtect.start(config)I get a TypeScript error becausePIProtect.start()is expecting the_typeand_actionfields. These fields are explicitly omitted in theInitConfiginterface inpackages/ping-protect/src/lib/ping-protect.ts.Here's a screenshot of the TypeScript error from VS Code.
Full error in plain text:
Did you add a changeset?
Yes a changeset has been included. I'm not sure if this is appropriate for a change like this (developer facing).