@types/semver

  • Version 7.3.6
  • Published
  • 23.3 kB
  • No dependencies
  • MIT license

Install

npm i @types/semver
yarn add @types/semver
pnpm add @types/semver

Overview

TypeScript definitions for semver

Index

Variables

variable SEMVER_SPEC_VERSION

const SEMVER_SPEC_VERSION: string;

    Interfaces

    interface CoerceOptions

    interface CoerceOptions extends Options {}

      property rtl

      rtl?: boolean;
      • Used by coerce() to coerce from right to left.

        false

        Example 1

        coerce('1.2.3.4', { rtl: true }); // => SemVer { version: '2.3.4', ... }

        6.2.0

      interface Options

      interface Options {}

        property includePrerelease

        includePrerelease?: boolean;

          property loose

          loose?: boolean;

            Type Aliases

            type Operator

            type Operator = '===' | '!==' | '' | '=' | '==' | '!=' | '>' | '>=' | '<' | '<=';

              type ReleaseType

              type ReleaseType =
              | 'major'
              | 'premajor'
              | 'minor'
              | 'preminor'
              | 'patch'
              | 'prepatch'
              | 'prerelease';

                Package Files (1)

                Dependencies (0)

                No dependencies.

                Dev Dependencies (0)

                No dev dependencies.

                Peer Dependencies (0)

                No peer dependencies.

                Badge

                To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/semver.

                • Markdown
                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/semver)
                • HTML
                  <a href="https://www.jsdocs.io/package/@types/semver"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>