ReferenceAPI
OpsinErrorSeverity
How severe a warning is.
How this is generated
Source: lib/opsinjs.ts. Script: scripts/build-reference.mts. Command:
pnpm run generate.
Everything below is copied from the symbol, so a page is improved by improving its doc comment. The API index says why there is a page per symbol and what these pages still do not carry.
OpsinErrorSeverity
How severe a warning is.
The three classes are declared in tokens/errors.json's policy.severity block, which also carries the sentence that says what each one means:
- safety - A defect that can mislead a reader about their own health. Treat as a bug, not as a lint warning.
- correctness - The component will render something, but not what the author meant.
- hygiene - Works today, will not survive an upgrade.
| Kind | Declared in |
|---|---|
| type | lib/opsinjs.ts |
export type OpsinErrorSeverity = "safety" | "correctness" | "hygiene"