# @types/levn

> TypeScript definitions for levn

Latest version **0.4.0** (published 2024-09-06) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2024-09-06 |
| First published | 2024-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51371 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.4.0 (latest) — 2024-09-06

## README

# Installation
> `npm install --save @types/levn`

# Summary
This package contains type definitions for levn (https://github.com/gkz/levn).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/levn.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/levn/index.d.ts)
````ts
import { CustomType, ParsedType, ParsedTypeData } from "type-check";

export interface CastableCustomType extends CustomType {
    cast: (input: unknown) => ParsedTypeData;
}

export interface ParseOptions {
    customTypes?: Record<string, CastableCustomType> | undefined;
    explicit?: boolean | undefined;
}

export function parse(
    type: string,
    string: string,
    options?: ParseOptions,
): unknown;

export function parsedTypeParse(
    parsedType: ParsedType,
    input: string,
    options?: ParseOptions,
): unknown;

export const VERSION: string;

````

### Additional Details
 * Last updated: Fri, 06 Sep 2024 21:07:35 GMT
 * Dependencies: [@types/type-check](https://npmjs.com/package/@types/type-check)

# Credits
These definitions were written by [Josh Goldberg](https://github.com/JoshuaKGoldberg).

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