---
title: "DiagnosticLevel"
---
Defined in: api/node/rust-module.d.cts:431

This enum describes the level or severity of a diagnostic message produced by the compiler.

## Enumeration Members

### Error

> **Error**: `0`

Defined in: api/node/rust-module.d.cts:433

The diagnostic found is an error that prevents successful compilation.

***

### Note

> **Note**: `2`

Defined in: api/node/rust-module.d.cts:437

The diagnostic is a note to further help with the error or warning.

***

### Warning

> **Warning**: `1`

Defined in: api/node/rust-module.d.cts:435

The diagnostic found is a warning.