mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Fixed custom user attribute types
This commit is contained in:
@@ -6,6 +6,9 @@ const ldClient = LDClient.initialize(
|
||||
{
|
||||
key: 'USER KEY',
|
||||
name: 'USER NAME',
|
||||
custom: {
|
||||
'CUSTOM ATTRIBUTE': ['CUSTOM VALUE'],
|
||||
},
|
||||
},
|
||||
{
|
||||
hash: 'SECURE USER HASH',
|
||||
|
||||
4
ldclient-js/ldclient-js.d.ts
vendored
4
ldclient-js/ldclient-js.d.ts
vendored
@@ -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>,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user