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

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:483

The diagnostic found is an error that prevents successful compilation.

***

### Info

> **Info**: `2`

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

The diagnostic is a suggestion that doesn't affect the compilation.

***

### Note

> **Note**: `3`

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

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

***

### Warning

> **Warning**: `1`

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

The diagnostic found is a warning.