You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: remove redundant type annotations from JSDoc comments
TypeScript already provides type information through function signatures,
making explicit {type} annotations in JSDoc redundant and prone to
becoming outdated. This removes them in favor of simpler @param name
descriptions.
* Enumerates available recording devices from the system.
39
-
*
40
-
* @returns {Promise<Result<Device[], RecorderServiceError>>} A promise that resolves to either a list of available devices or an error
41
37
*/
42
38
constenumerateDevices=async(): Promise<
43
39
Result<Device[],RecorderServiceError>
@@ -61,8 +57,6 @@ export function createCpalRecorderService(): RecorderService {
61
57
return{
62
58
/**
63
59
* Gets the current state of the recorder.
64
-
*
65
-
* @returns {Promise<Result<WhisperingRecordingState, RecorderServiceError>>} A promise that resolves to either 'RECORDING' or 'IDLE' state, or an error
* Wrapper function for Tauri invoke calls that handles errors consistently.
342
328
* Converts Tauri invoke calls into Result types for better error handling.
343
329
*
344
-
* @template T - The expected return type from the Tauri command
345
-
* @param {string} command - The Tauri command to invoke
346
-
* @param {Record<string, unknown>} [args] - Optional arguments to pass to the command
347
-
* @returns {Promise<Result<T, {name: 'TauriInvokeError', command: string, error: unknown}>>} A promise that resolves to either the command result or a structured error
330
+
* @param command - The Tauri command to invoke
331
+
* @param args - Optional arguments to pass to the command
0 commit comments