12 lines
290 B
TypeScript
12 lines
290 B
TypeScript
import { Job } from ".";
|
|
|
|
/**
|
|
* Sets a job to repeat at a specific time
|
|
* @name Job#repeatAt
|
|
* @function
|
|
* @param time time to repeat job at (human readable or number)
|
|
*/
|
|
export const repeatAt = function (this: Job, time: string): Job {
|
|
this.attrs.repeatAt = time;
|
|
return this;
|
|
};
|