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

fix: Update TypeScript definitions for datafile management #263

Merged
merged 4 commits into from
May 3, 2019

Conversation

mjc1283
Copy link
Contributor

@mjc1283 mjc1283 commented May 2, 2019

Summary

Update TypeScript definitions to account for new methods (onReady, close) and new properties on object accepted by createInstance (datafileOptions, sdkKey)

Test plan

Manually tested

Issues

https://optimizely.atlassian.net/browse/OASIS-4559

@mjc1283 mjc1283 requested a review from mikeproeng37 May 2, 2019 17:23
@mjc1283 mjc1283 changed the title Update TypeScript definitions for datafile management fix: Update TypeScript definitions for datafile management May 2, 2019
@coveralls
Copy link

coveralls commented May 2, 2019

Coverage Status

Coverage remained the same at 97.58% when pulling 8c67b69 on mcarroll/update-ts-definitions into f754018 on master.

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -15,13 +15,35 @@
*/

declare module '@optimizely/optimizely-sdk' {
import enums = require('@optimizely/optimizely-sdk/lib/utils/enums');
export namespace enums {
enum LOG_LEVEL {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for adding this!

// The options object given to Optimizely.createInstance.
export interface Config {
datafile: object;
datafile?: object | string;
Copy link
Contributor

Choose a reason for hiding this comment

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

nice!

@mjc1283 mjc1283 merged commit 27f4159 into master May 3, 2019
@mjc1283 mjc1283 deleted the mcarroll/update-ts-definitions branch May 3, 2019 19:54
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.

3 participants