mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Allow setUserId to accept null in the client as well. (#40161)
This commit is contained in:
committed by
Pranav Senthilnathan
parent
61895ffad8
commit
2b048e935c
@@ -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']);
|
||||
|
||||
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user