returned OnAfterBootstrap error and added more jsvm tests

This commit is contained in:
Gani Georgiev
2023-07-12 17:12:45 +03:00
parent d0a68da7e7
commit 6fe04bd280
6 changed files with 26837 additions and 3165 deletions
+48
View File
@@ -15,6 +15,54 @@ import (
)
const heading = `
// -------------------------------------------------------------------
// cronBinds
// -------------------------------------------------------------------
/**
* CronAdd registers a new cron job.
*
* If a cron job with the specified name already exist, it will be
* replaced with the new one.
*
* Example:
*
* ` + "```" + `js
* // prints "Hello world!" on every 30 minutes
* cronAdd("hello", "*/30 * * * *", (c) => {
* console.log("Hello world!")
* })
* ` + "```" + `
*
* _Note that this method is available only in pb_hooks context._
*
* @group PocketBase
*/
declare function cronAdd(
jobId: string,
cronExpr: string,
handler: () => void,
): void;
/**
* CronRemove removes previously registerd cron job by its name.
*
* Example:
*
* ` + "```" + `js
* cronRemove("hello")
* ` + "```" + `
*
* _Note that this method is available only in pb_hooks context._
*
* @group PocketBase
*/
declare function cronAdd(
jobId: string,
cronExpr: string,
handler: () => void,
): void;
// -------------------------------------------------------------------
// routerBinds
// -------------------------------------------------------------------
File diff suppressed because it is too large Load Diff