版博士V2.0程序
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

35 líneas
1.9 KiB

  1. type ProviderName = "" | "appveyor" | "azure_pipelines" | "azure_static" | "appcircle" | "bamboo" | "bitbucket" | "bitrise" | "buddy" | "buildkite" | "circle" | "cirrus" | "cloudflare_pages" | "codebuild" | "codefresh" | "drone" | "drone" | "dsari" | "github_actions" | "gitlab" | "gocd" | "layerci" | "hudson" | "jenkins" | "magnum" | "netlify" | "nevercode" | "render" | "sail" | "semaphore" | "screwdriver" | "shippable" | "solano" | "strider" | "teamcity" | "travis" | "vercel" | "appcenter" | "codesandbox" | "stackblitz" | "stormkit" | "cleavr";
  2. type ProviderInfo = {
  3. name: ProviderName;
  4. [meta: string]: any;
  5. };
  6. /** Value of process.platform */
  7. declare const platform: NodeJS.Platform;
  8. /** Current provider name */
  9. declare const provider: ProviderName;
  10. /** Detect if `CI` environment variable is set or a provider CI detected */
  11. declare const isCI: boolean;
  12. /** Detect if stdout.TTY is available */
  13. declare const hasTTY: boolean;
  14. /** Detect if global `window` object is available */
  15. declare const hasWindow: boolean;
  16. /** Detect if `DEBUG` environment variable is set */
  17. declare const isDebug: boolean;
  18. /** Detect if `NODE_ENV` environment variable is `test` */
  19. declare const isTest: boolean;
  20. /** Detect if `NODE_ENV` environment variable is `production` */
  21. declare const isProduction: boolean;
  22. /** Detect if `NODE_ENV` environment variable is `dev` or `development` */
  23. declare const isDevelopment: boolean;
  24. /** Detect if MINIMAL environment variable is set, running in CI or test or TTY is unavailable */
  25. declare const isMinimal: boolean;
  26. /** Detect if process.platform is Windows */
  27. declare const isWindows: boolean;
  28. /** Detect if process.platform is Linux */
  29. declare const isLinux: boolean;
  30. /** Detect if process.platform is macOS (darwin kernel) */
  31. declare const isMacOS: boolean;
  32. export { ProviderInfo, ProviderName, hasTTY, hasWindow, isCI, isDebug, isDevelopment, isLinux, isMacOS, isMinimal, isProduction, isTest, isWindows, platform, provider };