Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

feat: Add typings for LDClient #32

Merged
merged 1 commit into from
Feb 6, 2020
Merged

feat: Add typings for LDClient #32

merged 1 commit into from
Feb 6, 2020

Conversation

eeynard
Copy link
Contributor

@eeynard eeynard commented Jan 22, 2020

Hi !

Here is a PR adding typescript typing to LDClient. It should be a good start but I am not an expert, so if someone wants to add some precisions feel free to contribute ! :)

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

#23

Describe the solution you've provided

LDClient class should be typed in typescript

Describe alternatives you've considered

--

Additional context

--

@bwoskow-ld
Copy link
Member

Thank you for your contirbution, @eeynard!

At first glance your changes looks good. We'll review them for completeness and correctness and will aim to get this into an upcoming release.

LaunchDarklyCI pushed a commit that referenced this pull request Jan 25, 2020
* Changed start to startCompleteWhenFlagsReceived, serialize EvaluationDetail to NSDictionary, bump version numbers

* Added evaluationReasons config option, removed unnecessary iOS serialization

* Fixed Android config enum syntax error

* Serialize iOS and Android EvaluationDetail

* Parsing object to JSON to JSONObject to WriteableMap in Android native

* Fixed jsonString type

* Revert version number bump

* Added static Gson object, simplified EvaluationDetail parsing on Android native

* Remove invalid closing p tag from Android native JavaDoc
@bwoskow-ld bwoskow-ld changed the base branch from master to contrib February 6, 2020 19:02
@bwoskow-ld bwoskow-ld self-requested a review February 6, 2020 19:02
@bwoskow-ld
Copy link
Member

Thanks @eeynard for the contributions. This is a good start at introducing Typescript typedefs for the SDK.

I'm accepting your PR to thank you for your effort, and will make additional changes for completeness and correctness before releasing this publicly in the next SDK version.

@bwoskow-ld bwoskow-ld merged commit 44c196b into launchdarkly:contrib Feb 6, 2020
LaunchDarklyCI pushed a commit that referenced this pull request Feb 20, 2020
* feat: Add typings for LDClient (#32)

* typescript type definitions

* typedoc

* PR feedback

* fix typos

* setting default values to override platform inconsistencies
@bwoskow-ld
Copy link
Member

Type definitions are now available in 3.0.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants