We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 009a9b4 commit ae019cbCopy full SHA for ae019cb
packages/logging/src/analytics-helpers.ts
@@ -1,11 +1,15 @@
1
import fs from 'fs';
2
import path from 'path';
3
-import type { IdentifyParams as SegmentIdentity } from '@segment/analytics-node';
4
5
-export type MongoshAnalyticsIdentity = Pick<
6
- SegmentIdentity,
7
- 'userId' | 'anonymousId'
8
->;
+export type MongoshAnalyticsIdentity =
+ | {
+ userId: string;
+ anonymousId?: never;
+ }
9
10
+ userId?: never;
11
+ anonymousId: string;
12
+ };
13
14
export type AnalyticsIdentifyMessage = MongoshAnalyticsIdentity & {
15
traits: {
0 commit comments