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

2.0.2 • Public • Published

Installation

npm install --save @types/is-pr

Summary

This package contains type definitions for is-pr (https://github.com/watson/is-pr).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-pr.

index.d.ts

export = isPR;

/**
 * Detects if the current environment is a Continuous Integration
 * server configured to run a PR build.
 *
 * @returns `true` if running in CI with a PR build, otherwise `false`.
 * If PR detection is not supported for the current CI server, the value will be `null`.
 *
 * @example
 * import isPR = require('is-pr')
 *
 * if (isPR) {
 *   console.log('The code is running on a CI server as part of a PR build')
 * }
 */
declare const isPR: boolean | null;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/is-pr

Weekly Downloads

13

Version

2.0.2

License

MIT

Unpacked Size

3.47 kB

Total Files

5

Last publish

Collaborators

  • types