---
title: "OpsinErrorSeverity"
description: "How severe a warning is."
url: "https://opsinjs.pensievelabs.org/reference/api/OpsinErrorSeverity"
source: "https://opsinjs.pensievelabs.org/reference/api/OpsinErrorSeverity.md"
section: "Reference"
kind: "reference"
---

> Elements written as `<PascalCase … />` below are opsinjs documentation
> components. Their attributes are the content: the values they render are
> generated from `tokens/*.json` and `registry/catalogue.ts` and are
> published separately at https://opsinjs.pensievelabs.org/r/index.json and under the Reference
> section.
> Nothing is missing from this page. The data simply does not live in
> the prose.

{/* GENERATED - do not edit. Source: the declaration named in the table below.
    Script: scripts/build-reference.mts. Change the doc comment on the symbol. */}

<PageTemplate kind="reference" />

## How this is generated [#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](./index.mdx) says why there is a page per
symbol and what these pages still do not carry.

{/* opsinjs:generated:begin - everything below is replaced by scripts/build-reference.mts */}

## OpsinErrorSeverity [#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` |

```ts
export type OpsinErrorSeverity = "safety" | "correctness" | "hygiene"
```

{/* opsinjs:generated:end */}
