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(analytics-reco): allow creation of clients with their own credentials #1223

Merged
merged 2 commits into from Nov 16, 2020

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Nov 10, 2020

see https://github.com/algolia/algoliasearch-client-specs-internal/issues/144

This actually didn't need to change any code, just the types, since they didn't allow appId & apiKey, while they actually are passed along already

Comment on lines +11 to +15
export type OptionalCredentials<TClientOptions extends Credentials> = Omit<
TClientOptions,
keyof Credentials
> &
Pick<Partial<TClientOptions>, keyof Credentials>;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if someone can find a cleaner way to implement this, I'm all ears

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0156372:

Sandbox Source
javascript-client-app Configuration

@Haroenv Haroenv mentioned this pull request Nov 16, 2020
Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

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

Looks good to me. I think the typing is okay.

@Haroenv Haroenv merged commit a7938b0 into master Nov 16, 2020
@Haroenv Haroenv deleted the feat/clients-credentials branch November 16, 2020 12:59
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

2 participants