4.1.4 • Published 2 years ago

@types/bump-regex v4.1.4

Weekly downloads
985
License
MIT
Repository
github
Last release
2 years ago

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

// Type definitions for bump-regex 4.1
// Project: https://github.com/stevelacy/bump-regex
// Definitions by: silkentrance <https://github.com/silkentrance>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 08 Jul 2021 00:35:44 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by silkentrance.

4.1.4

2 years ago

4.1.3

2 years ago

4.1.2

2 years ago

4.1.1

4 years ago

4.1.0

4 years ago

2.9.0

8 years ago