While exploring the documentation and integrating it into my project for CAPTCHA Game Challenge, I noticed a mismatch between the provided documentation and the type definitions in this repository.
Observations
The implementation in the repository suggests the following structure:
/**
* Handles the challenge response and communicates with the parent window
* @param success - Whether the challenge was successful
* @param win - Target window (defaults to window.parent)
*/
export async function onChallengeResponse(
success: boolean,
win: Window = window.parent,
) {
const message: WidgetMessage = {
type: "response-callback",
success,
};
win.postMessage(message, TARGET_ORIGIN);
}
Here’s a screenshot of the relevant section in the documentation:
Description
While exploring the documentation and integrating it into my project for CAPTCHA Game Challenge, I noticed a mismatch between the provided documentation and the type definitions in this repository.
Observations
The implementation in the repository suggests the following structure:
Here’s a screenshot of the relevant section in the documentation:
Steps to Reproduce