Skip to content

Commit e8e1b8f

Browse files
authored
Merge pull request #18 from boazpoolman/feature/cron
feat: Add type for strapi.cron
2 parents de4834b + a3b9d4c commit e8e1b8f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

types/core.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export interface IStrapi {
5959
db: StrapiDB;
6060
admin: StrapiAdmin;
6161
log: StrapiLog;
62+
cron: StrapiCron;
6263

6364
customFields: StrapiServerCustomFields;
6465
}
@@ -245,6 +246,12 @@ export type StrapiLog = {
245246
warn: Function;
246247
};
247248

249+
export type StrapiCron = {
250+
add: Function;
251+
remove: Function;
252+
jobs: any[];
253+
};
254+
248255
export type AllowedCustomFieldType =
249256
| "biginteger"
250257
| "boolean"

0 commit comments

Comments
 (0)