(
- channel: string,
- handler: (params: P) => Promise (channel: string, handler: (params: P) => Promise (
const data = await handler(params as P);
return { success: true, data };
} catch (error) {
- const message =
- error instanceof Error
- ? error.message
- : getErrorMessage("unknownError");
+ const message = error instanceof Error ? error.message : getErrorMessage("unknownError");
return { success: false, error: message };
}
});
@@ -115,11 +94,7 @@ function handle (
* Wait for Kintone deployment to complete
* Polls getDeployStatus until SUCCESS, FAIL, CANCEL, or timeout
*/
-async function waitForDeploySuccess(
- client: KintoneClient,
- appId: string,
- options: { timeoutMs?: number; pollIntervalMs?: number } = {},
-): Promise
{t("clickOrDragToUpload")}
- {t("supportFiles", { size: maxFileSize / 1024 / 1024 })}
- {t("supportFiles", { size: maxFileSize / 1024 / 1024 })} {
: