@cedx/akismet
Version:
Prevent comment spam using the Akismet service.
26 lines (21 loc) • 461 B
text/typescript
/**
* Specifies the result of a comment check.
*/
export const CheckResult = Object.freeze({
/**
* The comment is not a spam (i.e. a ham).
*/
ham: 0,
/**
* The comment is a spam.
*/
spam: 1,
/**
* The comment is a pervasive spam (i.e. it can be safely discarded).
*/
pervasiveSpam: 2
});
/**
* Specifies the result of a comment check.
*/
export type CheckResult = typeof CheckResult[keyof typeof CheckResult];