MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / isCodeOk

Function isCodeOk

client/js/src/internal/apiService/errorCodes.ts:9–11  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

7}
8
9export function isCodeOk(code: number): boolean {
10 return code === ErrorCode.OK || code === ErrorCode.OK_MANY || code === ErrorCode.OK_ASYNC;
11}
12
13export function isCodeOkAsync(code: number): boolean {
14 return code === ErrorCode.OK_ASYNC;

Callers 5

addPhotosToAlbumMethod · 0.90
transferPhotosMethod · 0.90
makeRequestMethod · 0.90
handleResponseErrorsFunction · 0.90
deleteDraftMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected