MCPcopy
hub / github.com/callumalpass/tasknotes / successResponse

Method successResponse

src/services/HTTPAPIService.ts:209–214  ·  view source on GitHub ↗
(
		data: T,
		message?: string
	)

Source from the content-addressed store, hash-verified

207 }
208
209 private successResponse<T>(
210 data: T,
211 message?: string
212 ): { success: boolean; data: T; message?: string } {
213 return { success: true, data, message };
214 }
215
216 private errorResponse(error: string): { success: boolean; error: string } {
217 return { success: false, error };

Callers 15

startPomodoroMethod · 0.80
stopPomodoroMethod · 0.80
pausePomodoroMethod · 0.80
resumePomodoroMethod · 0.80
getPomodoroStatusMethod · 0.80
getPomodoroSessionsMethod · 0.80
getPomodoroStatsMethod · 0.80
getTasksMethod · 0.80
createTaskMethod · 0.80
getTaskMethod · 0.80
updateTaskMethod · 0.80
deleteTaskMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected