mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[amplitude-js] Allow setUserId to accept null (#37271)
According to amplitude JavaScript SDK Reference userId can be null. This can be used to anonymize users after they log out.
This commit is contained in:
parent
96f60f1a0e
commit
7befb82fde
@ -36,6 +36,7 @@ module Amplitude.Tests {
|
||||
amplitude.setGroup('orgId', '15');
|
||||
amplitude.setGroup('orgId', ['15', '16']);
|
||||
amplitude.setUserId('joe@gmail.com');
|
||||
amplitude.setUserId(null);
|
||||
amplitude.setUserProperties({ 'gender': 'female', 'sign_up_complete': true })
|
||||
amplitude.setVersionName('1.12.3');
|
||||
amplitude.isNewSession();
|
||||
|
||||
2
types/amplitude-js/index.d.ts
vendored
2
types/amplitude-js/index.d.ts
vendored
@ -86,7 +86,7 @@ export class AmplitudeClient {
|
||||
getSessionId(): number;
|
||||
|
||||
setDomain(domain: string): void;
|
||||
setUserId(userId: string): void;
|
||||
setUserId(userId: string | null): void;
|
||||
|
||||
setDeviceId(id: string): void;
|
||||
regenerateDeviceId(): void;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user