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

Wrap measureConversion return type in a dictionary for future extensions #87

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

apasel422
Copy link
Collaborator

@apasel422 apasel422 commented Feb 10, 2025

Fixes #85


Preview | Diff

@apasel422 apasel422 marked this pull request as ready for review February 10, 2025 13:52
[SecureContext, Exposed=Window]
partial interface PrivateAttribution {
[Throws] Promise<Uint8Array> measureConversion(PrivateAttributionConversionOptions options);
[Throws] Promise<PrivateAttributionConversionResult> measureConversion(PrivateAttributionConversionOptions options);
};
</xmp>
Copy link
Member

Choose a reason for hiding this comment

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

This probably needs more. We don't really describe the return value very well when describing the function, so maybe it is worth doing that down on line 666(old)/670(new) below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree, but we're already missing a lot of detail here. For example, Encrypt the report and Return the encrypted report do not explain how the Uint8Array is actually produced, so it might make more sense to fill that in later.

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.

Consider a more future-proof return type for measureConversion
2 participants