@types/reserved-words
TypeScript definitions for reserved-words
Last updated 2 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/reserved-words 
SYNC missed versions from official npm registry.

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

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.

Current Tags

  • 0.1.4                                ...           latest (2 years ago)
  • 0.1.0                                ...           ts3.0 (7 years ago)
  • 0.1.0                                ...           ts3.1 (7 years ago)
  • 0.1.0                                ...           ts3.2 (7 years ago)
  • 0.1.0                                ...           ts3.3 (7 years ago)
  • 0.1.0                                ...           ts3.4 (7 years ago)
  • 0.1.0                                ...           ts3.5 (7 years ago)
  • 0.1.0                                ...           ts3.6 (7 years ago)
  • 0.1.0                                ...           ts3.7 (7 years ago)
  • 0.1.0                                ...           ts3.8 (7 years ago)
  • 0.1.0                                ...           ts3.9 (7 years ago)
  • 0.1.0                                ...           ts4.0 (7 years ago)
  • 0.1.0                                ...           ts4.1 (7 years ago)
  • 0.1.0                                ...           ts4.2 (7 years ago)
  • 0.1.0                                ...           ts4.3 (7 years ago)
  • 0.1.0                                ...           ts4.4 (7 years ago)
  • 0.1.4                                ...           ts4.5 (2 years ago)
  • 0.1.4                                ...           ts4.6 (2 years ago)
  • 0.1.4                                ...           ts4.7 (2 years ago)
  • 0.1.4                                ...           ts4.8 (2 years ago)
  • 0.1.4                                ...           ts4.9 (2 years ago)
  • 0.1.4                                ...           ts5.0 (2 years ago)
  • 0.1.4                                ...           ts5.1 (2 years ago)
  • 0.1.4                                ...           ts5.2 (2 years ago)
  • 0.1.4                                ...           ts5.3 (2 years ago)
  • 0.1.4                                ...           ts5.4 (2 years ago)
  • 0.1.4                                ...           ts5.5 (2 years ago)
  • 0.1.4                                ...           ts5.6 (2 years ago)
  • 0.1.4                                ...           ts5.7 (2 years ago)
  • 0.1.4                                ...           ts5.8 (2 years ago)
  • 0.1.4                                ...           ts5.9 (2 years ago)
  • 0.1.4                                ...           ts6.0 (2 years ago)

5 Versions

  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |