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.