This repository was archived by the owner on Jun 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,6 @@ export const useAnalytics = (): ClientMethods => {
64
64
flush : ( ) => client . flush ( ) ,
65
65
group : ( ...args ) => client . group ( ...args ) ,
66
66
alias : ( ...args ) => client . alias ( ...args ) ,
67
- reset : ( ) => client . reset ( ) ,
67
+ reset : ( ... args ) => client . reset ( ... args ) ,
68
68
} ;
69
69
} ;
Original file line number Diff line number Diff line change @@ -128,11 +128,11 @@ export type Config = {
128
128
export type ClientMethods = {
129
129
screen : ( name : string , properties ?: JsonMap ) => void ;
130
130
track : ( event : string , properties ?: JsonMap ) => void ;
131
- identify : ( userId : string , userTraits ?: UserTraits ) => void ;
131
+ identify : ( userId ? : string , userTraits ?: UserTraits ) => void ;
132
132
flush : ( ) => Promise < void > ;
133
133
group : ( groupId : string , groupTraits ?: GroupTraits ) => void ;
134
134
alias : ( newUserId : string ) => void ;
135
- reset : ( ) => void ;
135
+ reset : ( resetAnonymousId ?: boolean ) => void ;
136
136
} ;
137
137
138
138
type ContextApp = {
@@ -152,6 +152,7 @@ export type ContextDevice = {
152
152
adTrackingEnabled ?: boolean ; // ios only
153
153
advertisingId ?: string ; // ios only
154
154
trackingStatus ?: string ;
155
+ token ?: string ;
155
156
} ;
156
157
157
158
type ContextLibrary = {
You can’t perform that action at this time.
0 commit comments