@types/bump-regex
TypeScript icon, indicating that this package has built-in type declarations

4.1.4 • Public • Published

Installation

npm install --save @types/bump-regex

Summary

This package contains type definitions for bump-regex (https://github.com/stevelacy/bump-regex).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bump-regex.

index.d.ts

declare function bump(opts: string | bump.Options, cb: bump.Callback): any;

declare namespace bump {
    type Callback = (err: string | Error | null, opts?: Result) => void;

    interface Options {
        key?: string | undefined;
        type?: "major" | "minor" | "patch" | "prerelease" | undefined;
        case?: boolean | undefined;
        keys?: string[] | undefined;
        /**
         * Keep the metadata of the old version after bumping
         * @default false
         */
        keepmetadata?: boolean | undefined;
        global?: boolean | undefined;
        version?: string | undefined;
        preid?: string | undefined;
        regex?: RegExp | undefined;
        str?: string | undefined;
    }

    interface Result extends Options {
        prev: string;
        new: string;
    }
}

export = bump;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by silkentrance.

/@types/bump-regex/

    Package Sidebar

    Install

    npm i @types/bump-regex

    Weekly Downloads

    732

    Version

    4.1.4

    License

    MIT

    Unpacked Size

    4.21 kB

    Total Files

    5

    Last publish

    Collaborators

    • types