# @types/hast

> TypeScript definitions for hast

Latest version **3.0.5** (published 2026-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/hast
pnpm add @types/hast
yarn add @types/hast
bun add @types/hast
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.0.5 |
| Published | 2026-07-09 |
| First published | 2020-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 34.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51439 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/hast
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hast
- npm.io page: https://npm.io/package/@types/hast

## Dependencies (1)

- [@types/unist](https://npm.io/package/@types/unist.md) *

## Recent versions

- 3.0.5 (latest) — 2026-07-09
- 3.0.4 (ts5.1) — 2024-01-30
- 3.0.3 (ts4.5) — 2023-11-07
- 3.0.0 (ts4.4) — 2023-07-06
- 2.3.4 (ts3.7) — 2021-08-22
- 2.3.2 (ts3.6) — 2021-07-06
- 2.3.1 (ts3.4) — 2020-04-29
- 2.3.10 — 2024-01-30
- 2.3.9 — 2023-12-27
- 2.3.8 — 2023-11-07
- 2.3.7 — 2023-10-18
- 3.0.2 — 2023-10-18
- 2.3.6 — 2023-09-16
- 3.0.1 — 2023-09-16
- 2.3.5 — 2023-07-11
- … 2 more at https://npm.io/package/@types/hast/versions

## README

# Installation
> `npm install --save @types/hast`

# Summary
This package contains type definitions for hast (https://github.com/syntax-tree/hast).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hast.

### Additional Details
 * Last updated: Thu, 09 Jul 2026 11:00:13 GMT
 * Dependencies: [@types/unist](https://npmjs.com/package/@types/unist)

# Credits
These definitions were written by [lukeggchapman](https://github.com/lukeggchapman), [Junyoung Choi](https://github.com/rokt33r), [Christian Murphy](https://github.com/ChristianMurphy), [Remco Haszing](https://github.com/remcohaszing), and [Titus Wormer](https://github.com/wooorm).

---
_Source: https://npm.io/package/@types/hast · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
