# @mdit-kdu/types

> Shared types definition of mdit-kdu

Latest version **1.0.0** (published 2023-12-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mdit-kdu/types
pnpm add @mdit-kdu/types
yarn add @mdit-kdu/types
bun add @mdit-kdu/types
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-12-15 |
| First published | 2023-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | NKDuy |
| Maintainers | nkduy |
| Keywords | markdown-it, kdu, types |

## Links

- npm: https://www.npmjs.com/package/@mdit-kdu/types
- Repository: https://github.com/kdujs/mdit-kdu
- Issues: https://github.com/kdujs/mdit-kdu/issues
- npm.io page: https://npm.io/package/@mdit-kdu/types

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2023-12-15

## README

# @mdit-kdu/types

Shared types definition of mdit-kdu.

## Install

```sh
npm i @mdit-kdu/types
```

## Usage

Add more properties to `env` via [TypeScript module augmentation](https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation):

```ts
declare module '@mdit-kdu/types' {
  interface MarkdownItEnv {
    foo?: string[];
  }
}
```

```ts
import MarkdownIt from 'markdown-it';
import type { MarkdownItEnv } from '@mdit-kdu/types';

const md = MarkdownIt({ html: true });
const env: MarkdownItEnv = {};
const rendered = md.render('raw markdown text', env);
```

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