-
Notifications
You must be signed in to change notification settings - Fork 83
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
Conversation
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
Summary
Update TypeScript definitions to account for new methods (
onReady
,close
) and new properties on object accepted bycreateInstance
(datafileOptions
,sdkKey
)Test plan
Manually tested
Issues
https://optimizely.atlassian.net/browse/OASIS-4559