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

Commit

Permalink
Merge pull request #95 from stepanataccolade/add_private_attributes_t…
Browse files Browse the repository at this point in the history
…o_LDOptions_ts

updated typescript definitions for LDOptions
  • Loading branch information
eli-darkly authored Jun 5, 2018
2 parents e537419 + a307fb1 commit 0786d31
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,39 @@ declare module "ldclient-node" {
* Whether to send events back to LaunchDarkly
*/
sendEvents?: boolean;

/**
* Whether all user attributes (except the user key) should be marked as
* private, and not sent to LaunchDarkly.
*
* Defaults to false.
*/
allAttributesPrivate?: boolean;

/**
* The names of user attributes that should be marked as private, and not sent
* to LaunchDarkly.
*
* Must be a list of strings. Defaults to empty list.
*/
privateAttributeNames?: Array<string>;

/**
* The number of user keys that the event processor can remember at any one time,
* so that duplicate user details will not be sent in analytics events.
*
* Defaults to 1000.
*/
userKeysCapacity?: number;

/**
* The interval (in seconds) at which the event processor will reset its set of
* known user keys.
*
* Defaults to 300.
*/
userKeysFlushInterval?: number;

}

/**
Expand Down

0 comments on commit 0786d31

Please sign in to comment.