# @types/reserved-words

> TypeScript definitions for reserved-words

Latest version **0.1.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/reserved-words
pnpm add @types/reserved-words
yarn add @types/reserved-words
bun add @types/reserved-words
```

## Health

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

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

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2023-11-07 |
| First published | 2019-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

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

## Recent versions

- 0.1.4 (latest) — 2023-11-07
- 0.1.0 (ts3.0) — 2019-03-12
- 0.1.3 — 2023-10-18
- 0.1.2 — 2023-09-29
- 0.1.1 — 2023-09-27

## README

# Installation
> `npm install --save @types/reserved-words`

# Summary
This package contains type definitions for reserved-words (https://github.com/zxqfox/reserved-words#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reserved-words.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reserved-words/index.d.ts)
````ts
export type Dialect =
    | "es3"
    | 3
    | "es5"
    | 5
    | "es2015"
    | 6
    | "es7"
    | 7
    | "es6"
    | "default"
    | "next";

export interface Keywords {
    [index: string]: {
        [index: string]: true;
    };
}

export const KEYWORDS: Keywords;

/**
 * Checks a word for being a reserved word and returns true if the provided
 * identifier string is a reserved word in some ECMAScript dialect.
 *
 * @param word word to check
 * @param dialect dialect or version
 * @param strict strict mode additionally checks whether word is a keyword or
 * future reserved word under strict mode.
 */
export function check(
    word: string,
    dialect?: Dialect,
    strict?: boolean,
): boolean;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Spencer Miskoviak](https://github.com/skovy).

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