Merge pull request #11970 from IceCreamYou/master

Fixed custom user attribute types
This commit is contained in:
Arthur Ozga
2016-10-13 14:29:11 -07:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+3
View File
@@ -6,6 +6,9 @@ const ldClient = LDClient.initialize(
{
key: 'USER KEY',
name: 'USER NAME',
custom: {
'CUSTOM ATTRIBUTE': ['CUSTOM VALUE'],
},
},
{
hash: 'SECURE USER HASH',
+3 -1
View File
@@ -131,7 +131,9 @@ declare namespace LaunchDarkly {
/**
* Any additional attributes associated with the user.
*/
custom?: string | boolean | number | Array<string | boolean | number>;
custom?: {
[key: string]: string | boolean | number | Array<string | boolean | number>,
};
}
/**