( properties: AnalyticsProperties, key: string, )
| 31 | type AnalyticsProperties = Record<string, unknown> | undefined |
| 32 | |
| 33 | function getStringProperty( |
| 34 | properties: AnalyticsProperties, |
| 35 | key: string, |
| 36 | ): string | undefined { |
| 37 | const value = properties?.[key] |
| 38 | return typeof value === 'string' && value.trim() ? value : undefined |
| 39 | } |
| 40 | |
| 41 | function getPropertyUserId(properties: AnalyticsProperties): string | undefined { |
| 42 | const direct = |
no outgoing calls
no test coverage detected