Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 905b56d

Browse files
author
Zheng Jing Tan
committed
Fix isRunningLive typing
1 parent e8dd22a commit 905b56d

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

index.d.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ export namespace BugReporting {
1111
function invokeWithInvocationModeAndOptions(
1212
invocationMode: invocationMode,
1313
invocationOptions: invocationOptions[]
14-
): void;
14+
): void;
1515
function onInvokeHandler(handler: () => void): void;
1616
function onReportSubmitHandler(preSendingHandler: () => void): void;
1717
function onSDKDismissedHandler(handler: (dismiss: dismissType, report: reportType) => void): void;
1818
function setPromptOptionsEnabled(
1919
chat: boolean,
2020
bug: boolean,
2121
feedback: boolean
22-
): void;
22+
): void;
2323
function setShakingThresholdForiPhone(iPhoneShakingThreshold: number): void;
2424
function setShakingThresholdForiPad(iPadShakingThreshold: number): void;
2525
function setShakingThresholdForAndroid(androidThreshold: number): void;
@@ -79,7 +79,7 @@ export namespace FeatureRequests {
7979
function setEmailFieldRequired(
8080
isEmailFieldRequired: boolean,
8181
actionTypes: actionTypes[]
82-
): void;
82+
): void;
8383
function show(): void;
8484
enum actionTypes {
8585
allActions,
@@ -90,7 +90,7 @@ export namespace FeatureRequests {
9090
}
9191
export namespace Replies {
9292
function setEnabled(isEnabled: boolean): void;
93-
function hasChats(callback: (previousChats : boolean) => void): void;
93+
function hasChats(callback: (previousChats: boolean) => void): void;
9494
function show(): void;
9595
function setOnNewReplyReceivedCallback(onNewReplyReceivedCallback: () => void): void;
9696
function setOnNewReplyReceivedHandler(onNewReplyReceivedHandler: () => void): void;
@@ -104,7 +104,7 @@ export namespace Surveys {
104104
function setThresholdForReshowingSurveyAfterDismiss(
105105
sessionCount: number,
106106
daysCount: number
107-
): void;
107+
): void;
108108
function getAvailableSurveys(availableSurveysCallback: (surveys: Survey[]) => void): void;
109109
function setAutoShowingEnabled(autoShowingSurveysEnabled: boolean): void;
110110
function onShowCallback(willShowSurveyHandler: () => void): void;
@@ -115,7 +115,7 @@ export namespace Surveys {
115115
function hasRespondedToSurvey(
116116
surveyToken: string,
117117
surveyTokenCallback: () => void
118-
): void;
118+
): void;
119119
function setShouldShowWelcomeScreen(shouldShowWelcomeScreen: boolean): void;
120120
}
121121
export namespace NetworkLogger {
@@ -127,11 +127,11 @@ export namespace NetworkLogger {
127127
export function startWithToken(
128128
token: string,
129129
invocationEvent: invocationEvent[]
130-
): void;
130+
): void;
131131
export function start(
132132
token: string,
133133
invocationEvent: invocationEvent[]
134-
): void;
134+
): void;
135135
export function setUserData(userData: string): void;
136136
export function setAutoScreenRecordingEnabled(autoScreenRecordingEnabled: boolean): void;
137137
export function setAutoScreenRecordingMaxDuration(autoScreenRecordingMaxDuration: number): void;
@@ -145,11 +145,11 @@ export function setPushNotificationsEnabled(isPushNotificationEnabled: boolean):
145145
export function setEmailFieldRequiredForActions(
146146
isEmailFieldRequired: boolean,
147147
actionTypes: actionTypes
148-
): void;
148+
): void;
149149
export function setFloatingButtonEdge(
150150
floatingButtonEdge: number,
151151
offsetFromTop: number
152-
): void;
152+
): void;
153153
export function setLocale(locale: locale): void;
154154
export function setColorTheme(colorTheme: colorTheme): void;
155155
export function setPrimaryColor(setPrimaryColor: number): void;
@@ -159,27 +159,27 @@ export function getTags(tagsCallback: () => void): void;
159159
export function setStringToKey(
160160
string: string,
161161
key: strings,
162-
): void;
162+
): void;
163163
export function setString(
164164
key: strings,
165165
string: string,
166-
): void;
166+
): void;
167167
export function setEnabledAttachmentTypes(
168168
screenshot: boolean,
169169
extraScreenshot: boolean,
170170
galleryImage: boolean,
171171
screenRecording: boolean
172-
): void;
172+
): void;
173173
export function identifyUserWithEmail(
174174
email: string,
175175
name: string
176-
): void;
176+
): void;
177177
export function identifyUser(
178178
email: string,
179179
name: string
180-
): void;
180+
): void;
181181
export function logOut(): void;
182-
export function logUserEventWithName(name: string, params?: any): void;
182+
export function logUserEventWithName(name: string, params?: any): void;
183183
export function logUserEvent(name: string): void;
184184
export function logVerbose(message: string): void;
185185
export function logInfo(message: string): void;
@@ -191,7 +191,7 @@ export function setReproStepsMode(reproStepsMode: reproStepsMode): void;
191191
export function setUserAttribute(
192192
key: string,
193193
value: string
194-
): void;
194+
): void;
195195
export function getUserAttribute(
196196
key: string,
197197
userAttributeCallback: () => void)
@@ -208,21 +208,21 @@ export function enable(): void;
208208
export function disable(): void;
209209
export function setEnableInAppNotificationSound(shouldPlaySound: boolean): void;
210210
export function reportJSException(Exception: object): void;
211-
export function isRunningLive(runningLiveCallBack: () => void): void;
211+
export function isRunningLive(runningLiveCallBack: (isLive: boolean) => void): void;
212212
export function setVideoRecordingFloatingButtonPosition(position: IBGPosition): void;
213213
export function setShouldShowSurveysWelcomeScreen(shouldShowWelcomeScreen: boolean): void;
214214
export function showWelcomeMessage(welcomeMessageMode: welcomeMessageMode): void;
215215
export function setWelcomeMessageMode(welcomeMessageMode: welcomeMessageMode): void;
216216
export function addFileAttachment(
217217
filePath: string,
218218
fileName: string
219-
): void;
219+
): void;
220220
export function show(): void;
221221
export function onReportSubmitHandler(preSendingHandler: (presendingHandler: Report) => void): void;
222222
export function callPrivateApi(
223223
apiName: string,
224224
param: any
225-
): void;
225+
): void;
226226
export enum invocationEvent {
227227
none,
228228
shake,
@@ -363,7 +363,7 @@ export enum strings {
363363
welcomeMessageLiveWelcomeStepContent
364364
}
365365

366-
interface Report {
366+
interface Report {
367367
logDebug(log: string);
368368
logVerbose(log: string);
369369
logWarn(log: string);

0 commit comments

Comments
 (0)