@pcvl/schema / IssueCode
Type Alias: IssueCode
ts
type IssueCode = ValueOfEnum<typeof ISSUE_CODE>;Defined in: issue/enums.ts:43
The union of ISSUE_CODE's values — the type of Issue's code field.
Example
ts
import { ISSUE_CODE, type IssueCode } from '@pcvl/schema';
const isSizeProblem = (code: IssueCode): boolean =>
code === ISSUE_CODE.TOO_SMALL || code === ISSUE_CODE.TOO_BIG;