Files
context-mod/src/JsonConfig.ts
2021-06-15 13:54:54 -04:00

17 lines
641 B
TypeScript

import {CheckJson, CommentCheckJson, SubmissionCheckJson} from "./Check";
import {ManagerOptions} from "./Common/interfaces";
export interface JSONConfig extends ManagerOptions {
/**
* A list of all the checks that should be run for a subreddit.
*
* Checks are split into two lists -- submission or comment -- based on kind and run independently.
*
* Checks in each list are run in the order found in the configuration.
*
* When a check "passes", and actions are performed, then all subsequent checks are skipped.
* @minItems 1
* */
checks: Array<SubmissionCheckJson|CommentCheckJson>
}