Fixed custom user attribute types

This commit is contained in:
IceCreamYou
2016-10-13 13:21:08 -07:00
parent d7fffe8a54
commit e08bd191cd
2 changed files with 6 additions and 1 deletions

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',

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>,
};
}
/**