Allow setUserId to accept null in the client as well. (#40161)

This commit is contained in:
Pascal Corpet
2019-11-11 11:54:21 -08:00
committed by Pranav Senthilnathan
parent 61895ffad8
commit 2b048e935c
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -68,6 +68,7 @@ module Amplitude.Tests {
client.setDeviceId('45f0954f-eb79-4463-ac8a-233a6f45a8f0');
client.setDomain('.amplitude.com');
client.setUserId('joe@gmail.com');
client.setUserId(null);
client.setOptOut(true);
client.setGroup('type', 'name');
client.setGroup('type', ['name', 'name2']);
+1 -1
View File
@@ -122,7 +122,7 @@ export function getSessionId(): number;
export function setDomain(domain: string): void;
export function setUserId(userId: string): void;
export function setUserId(userId: string | null): void;
export function setDeviceId(id: string): void;
export function regenerateDeviceId(): void;