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.