Skip to content

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

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.

4 participants