From b14929316260304ea0537f1e639c051f31062384 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Wed, 5 Jun 2019 22:18:42 +0530 Subject: [PATCH 1/2] Add type definitions generated .d.ts file --- index.d.ts | 760 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 760 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..8362199 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,760 @@ +// Definitions by James George (https://github.com/jamesgeorge007) + +export function cli(e: any): any; + +export function main(e: any, t: any): any; + +interface Config { + System: string[]; + Binaries: string[]; + Browsers: string[]; + npmPackages: string | string[]; + npmGlobalPackages: string[]; +} + +interface Options { + json: boolean; + console: boolean; + showNotFound: boolean; +} + +export function run(e: Config, t: Options): any; + +export namespace cli { + const prototype: { + }; + +} + +export namespace helpers { + const NA: string; + + const NotFound: string; + + const browserBundleIdentifiers: { + Chrome: string; + "Chrome Canary": string; + Firefox: string; + "Firefox Developer Edition": string; + "Firefox Nightly": string; + Safari: string; + "Safari Technology Preview": string; + }; + + const ideBundleIdentifiers: { + Atom: string; + IntelliJ: string; + PhpStorm: string; + "Sublime Text": string; + WebStorm: string; + }; + + const isLinux: boolean; + + const isMacOS: boolean; + + const isWindows: boolean; + + const versionRegex: RegExp; + + function condensePath(e: any): any; + + function determineFound(e: any, t: any, n: any): any; + + function fileExists(e: any): any; + + function findDarwinApplication(e: any): any; + + function findVersion(e: any, t: any, n: any): any; + + function generatePlistBuddyCommand(e: any, t: any): any; + + function getAllPackageJsonPaths(e: any): any; + + function getAndroidSDKInfo(): any; + + function getAndroidStudioInfo(): any; + + function getApacheInfo(): any; + + function getAtomInfo(): any; + + function getBashInfo(): any; + + function getCMakeInfo(): any; + + function getCPUInfo(): any; + + function getChromeCanaryInfo(): any; + + function getChromeInfo(): any; + + function getContainerInfo(): any; + + function getDarwinApplicationVersion(e: any): any; + + function getDockerInfo(): any; + + function getEdgeInfo(): any; + + function getElixirInfo(): any; + + function getEmacsInfo(): any; + + function getFirefoxDeveloperEditionInfo(): any; + + function getFirefoxInfo(): any; + + function getFirefoxNightlyInfo(): any; + + function getGCCInfo(): any; + + function getGitInfo(): any; + + function getGoInfo(): any; + + function getHomeBrewInfo(): any; + + function getIntelliJInfo(): any; + + function getInternetExplorerInfo(): any; + + function getJavaInfo(): any; + + function getMakeInfo(): any; + + function getMemoryInfo(): any; + + function getMongoDBInfo(): any; + + function getMySQLInfo(): any; + + function getNanoInfo(): any; + + function getNginxInfo(): any; + + function getNodeInfo(): any; + + function getNvimInfo(): any; + + function getOSInfo(): any; + + function getPHPInfo(): any; + + function getPackageJsonByFullPath(e: any): any; + + function getPackageJsonByName(e: any): any; + + function getPackageJsonByPath(e: any): any; + + function getParallelsInfo(): any; + + function getPerlInfo(): any; + + function getPhpStormInfo(): any; + + function getPostgreSQLInfo(): any; + + function getPythonInfo(): any; + + function getRubyInfo(): any; + + function getRustInfo(): any; + + function getSQLiteInfo(): any; + + function getSafariInfo(): any; + + function getSafariTechnologyPreviewInfo(): any; + + function getScalaInfo(): any; + + function getShellInfo(): any; + + function getSublimeTextInfo(): any; + + function getVMwareFusionInfo(): any; + + function getVSCodeInfo(): any; + + function getVimInfo(): any; + + function getVirtualBoxInfo(): any; + + function getWatchmanInfo(): any; + + function getWebStormInfo(): any; + + function getXcodeInfo(): any; + + function getYarnInfo(): any; + + function getiOSSDKInfo(): any; + + function getnpmGlobalPackages(e: any, t: any): any; + + function getnpmInfo(): any; + + function getnpmPackages(e: any, t: any): any; + + function isObject(e: any): any; + + function log(e: any, ...args: any[]): void; + + function matchAll(e: any, t: any): any; + + function noop(e: any): any; + + function omit(e: any, t: any): any; + + function parseSDKManagerOutput(e: any): any; + + function pick(e: any, t: any): any; + + function pipe(e: any): any; + + function readFile(e: any): any; + + function requireJson(e: any): any; + + function run(e: any, ...args: any[]): any; + + function runSync(e: any): any; + + function sortObject(e: any): any; + + function toReadableBytes(e: any): any; + + function uniq(e: any): any; + + function which(e: any): any; + + namespace condensePath { + const prototype: { + }; + + } + + namespace determineFound { + const prototype: { + }; + + } + + namespace fileExists { + const prototype: { + }; + + } + + namespace findDarwinApplication { + const prototype: { + }; + + } + + namespace findVersion { + const prototype: { + }; + + } + + namespace generatePlistBuddyCommand { + const prototype: { + }; + + } + + namespace getAllPackageJsonPaths { + const prototype: { + }; + + } + + namespace getAndroidSDKInfo { + const prototype: { + }; + + } + + namespace getAndroidStudioInfo { + const prototype: { + }; + + } + + namespace getApacheInfo { + const prototype: { + }; + + } + + namespace getAtomInfo { + const prototype: { + }; + + } + + namespace getBashInfo { + const prototype: { + }; + + } + + namespace getCMakeInfo { + const prototype: { + }; + + } + + namespace getCPUInfo { + const prototype: { + }; + + } + + namespace getChromeCanaryInfo { + const prototype: { + }; + + } + + namespace getChromeInfo { + const prototype: { + }; + + } + + namespace getContainerInfo { + const prototype: { + }; + + } + + namespace getDarwinApplicationVersion { + const prototype: { + }; + + } + + namespace getDockerInfo { + const prototype: { + }; + + } + + namespace getEdgeInfo { + const prototype: { + }; + + } + + namespace getElixirInfo { + const prototype: { + }; + + } + + namespace getEmacsInfo { + const prototype: { + }; + + } + + namespace getFirefoxDeveloperEditionInfo { + const prototype: { + }; + + } + + namespace getFirefoxInfo { + const prototype: { + }; + + } + + namespace getFirefoxNightlyInfo { + const prototype: { + }; + + } + + namespace getGCCInfo { + const prototype: { + }; + + } + + namespace getGitInfo { + const prototype: { + }; + + } + + namespace getGoInfo { + const prototype: { + }; + + } + + namespace getHomeBrewInfo { + const prototype: { + }; + + } + + namespace getIntelliJInfo { + const prototype: { + }; + + } + + namespace getInternetExplorerInfo { + const prototype: { + }; + + } + + namespace getJavaInfo { + const prototype: { + }; + + } + + namespace getMakeInfo { + const prototype: { + }; + + } + + namespace getMemoryInfo { + const prototype: { + }; + + } + + namespace getMongoDBInfo { + const prototype: { + }; + + } + + namespace getMySQLInfo { + const prototype: { + }; + + } + + namespace getNanoInfo { + const prototype: { + }; + + } + + namespace getNginxInfo { + const prototype: { + }; + + } + + namespace getNodeInfo { + const prototype: { + }; + + } + + namespace getNvimInfo { + const prototype: { + }; + + } + + namespace getOSInfo { + const prototype: { + }; + + } + + namespace getPHPInfo { + const prototype: { + }; + + } + + namespace getPackageJsonByFullPath { + const prototype: { + }; + + } + + namespace getPackageJsonByName { + const prototype: { + }; + + } + + namespace getPackageJsonByPath { + const prototype: { + }; + + } + + namespace getParallelsInfo { + const prototype: { + }; + + } + + namespace getPerlInfo { + const prototype: { + }; + + } + + namespace getPhpStormInfo { + const prototype: { + }; + + } + + namespace getPostgreSQLInfo { + const prototype: { + }; + + } + + namespace getPythonInfo { + const prototype: { + }; + + } + + namespace getRubyInfo { + const prototype: { + }; + + } + + namespace getRustInfo { + const prototype: { + }; + + } + + namespace getSQLiteInfo { + const prototype: { + }; + + } + + namespace getSafariInfo { + const prototype: { + }; + + } + + namespace getSafariTechnologyPreviewInfo { + const prototype: { + }; + + } + + namespace getScalaInfo { + const prototype: { + }; + + } + + namespace getShellInfo { + const prototype: { + }; + + } + + namespace getSublimeTextInfo { + const prototype: { + }; + + } + + namespace getVMwareFusionInfo { + const prototype: { + }; + + } + + namespace getVSCodeInfo { + const prototype: { + }; + + } + + namespace getVimInfo { + const prototype: { + }; + + } + + namespace getVirtualBoxInfo { + const prototype: { + }; + + } + + namespace getWatchmanInfo { + const prototype: { + }; + + } + + namespace getWebStormInfo { + const prototype: { + }; + + } + + namespace getXcodeInfo { + const prototype: { + }; + + } + + namespace getYarnInfo { + const prototype: { + }; + + } + + namespace getiOSSDKInfo { + const prototype: { + }; + + } + + namespace getnpmGlobalPackages { + const prototype: { + }; + + } + + namespace getnpmInfo { + const prototype: { + }; + + } + + namespace getnpmPackages { + const prototype: { + }; + + } + + namespace isObject { + const prototype: { + }; + + } + + namespace log { + const prototype: { + }; + + } + + namespace matchAll { + const prototype: { + }; + + } + + namespace noop { + const prototype: { + }; + + } + + namespace omit { + const prototype: { + }; + + } + + namespace parseSDKManagerOutput { + const prototype: { + }; + + } + + namespace pick { + const prototype: { + }; + + } + + namespace pipe { + const prototype: { + }; + + } + + namespace readFile { + const prototype: { + }; + + } + + namespace requireJson { + const prototype: { + }; + + } + + namespace run { + const prototype: { + }; + + } + + namespace runSync { + const prototype: { + }; + + } + + namespace sortObject { + const prototype: { + }; + + } + + namespace toReadableBytes { + const prototype: { + }; + + } + + namespace uniq { + const prototype: { + }; + + } + + namespace which { + const prototype: { + }; + + } + +} + +export namespace main { + const prototype: { + }; + +} + +export namespace run { + const prototype: { + }; + +} From bc9ceb7034f410aac34e774ebf54cc179ba716e8 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Wed, 5 Jun 2019 22:22:14 +0530 Subject: [PATCH 2/2] Update contributors list --- .all-contributorsrc | 9 +++++++++ README.md | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 6db82ca..5003294 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -120,6 +120,15 @@ "bug", "code" ] + }, + { + "login": "jamesgeorge007", + "name": "James George", + "avatar_url": "https://avatars2.githubusercontent.com/u/25279263?v=4", + "profile": "https://ghuser.io/jamesgeorge007", + "contributions": [ + "code" + ] } ] } diff --git a/README.md b/README.md index 5b71618..af21db1 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@

[![CircleCI](https://circleci.com/gh/tabrindle/envinfo/tree/master.svg?style=svg)](https://circleci.com/gh/tabrindle/envinfo/tree/master) [![Build Status](https://travis-ci.org/tabrindle/envinfo.svg?branch=master)](https://travis-ci.org/tabrindle/envinfo) [![npm version](https://badge.fury.io/js/envinfo.svg)](https://badge.fury.io/js/envinfo) [![npm downloads per month](https://img.shields.io/npm/dm/envinfo.svg?maxAge=86400)](https://www.npmjs.com/package/envinfo) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) -[![All Contributors](https://img.shields.io/badge/all_contributors-10-orange.svg?style=flat-square)](#contributors) +[![All Contributors](https://img.shields.io/badge/all_contributors-11-orange.svg?style=flat-square)](#contributors) ## The problem @@ -267,7 +267,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds | [
Trevor Brindle](http://trevorbrindle.com)
[πŸ’¬](#question-tabrindle "Answering Questions") [πŸ“](#blog-tabrindle "Blogposts") [πŸ›](https://github.com/tabrindle/envinfo/issues?q=author%3Atabrindle "Bug reports") [πŸ’»](https://github.com/tabrindle/envinfo/commits?author=tabrindle "Code") [πŸ“–](https://github.com/tabrindle/envinfo/commits?author=tabrindle "Documentation") [πŸ’‘](#example-tabrindle "Examples") [πŸ€”](#ideas-tabrindle "Ideas, Planning, & Feedback") [πŸ‘€](#review-tabrindle "Reviewed Pull Requests") [πŸ“’](#talk-tabrindle "Talks") [⚠️](https://github.com/tabrindle/envinfo/commits?author=tabrindle "Tests") | [
Gant Laborde](http://gantlaborde.com/)
[πŸ“](#blog-GantMan "Blogposts") [πŸ›](https://github.com/tabrindle/envinfo/issues?q=author%3AGantMan "Bug reports") [πŸ’»](https://github.com/tabrindle/envinfo/commits?author=GantMan "Code") [πŸ€”](#ideas-GantMan "Ideas, Planning, & Feedback") | [
Anton Fisher](http://antonfisher.com)
[πŸ›](https://github.com/tabrindle/envinfo/issues?q=author%3Aantonfisher "Bug reports") [πŸ’»](https://github.com/tabrindle/envinfo/commits?author=antonfisher "Code") | [
Ahmad Awais ⚑️](https://AhmadAwais.com/)
[πŸ›](https://github.com/tabrindle/envinfo/issues?q=author%3Aahmadawais "Bug reports") [πŸ’»](https://github.com/tabrindle/envinfo/commits?author=ahmadawais "Code") | [
Hasan](https://github.com/LEQADA)
[πŸ›](https://github.com/tabrindle/envinfo/issues?q=author%3ALEQADA "Bug reports") [πŸ’»](https://github.com/tabrindle/envinfo/commits?author=LEQADA "Code") | [
Ernesto RamΓ­rez](http://twitter.com/_ErnestoR)
[πŸ›](https://github.com/tabrindle/envinfo/issues?q=author%3AErnestoR "Bug reports") [πŸ’»](https://github.com/tabrindle/envinfo/commits?author=ErnestoR "Code") | [
Jiawen Geng](https://www.gengjiawen.com)
[πŸ›](https://github.com/tabrindle/envinfo/issues?q=author%3Agengjiawen "Bug reports") [πŸ’»](https://github.com/tabrindle/envinfo/commits?author=gengjiawen "Code") [πŸ€”](#ideas-gengjiawen "Ideas, Planning, & Feedback") [⚠️](https://github.com/tabrindle/envinfo/commits?author=gengjiawen "Tests") | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| [
Zac Anger](https://zacanger.com)
[πŸ’»](https://github.com/tabrindle/envinfo/commits?author=zacanger "Code") [πŸ›](https://github.com/tabrindle/envinfo/issues?q=author%3Azacanger "Bug reports") | [
Ville Immonen](https://twitter.com/VilleImmonen)
[πŸ›](https://github.com/tabrindle/envinfo/issues?q=author%3Afson "Bug reports") [πŸ’»](https://github.com/tabrindle/envinfo/commits?author=fson "Code") | [
Olmo Maldonado](http://ibolmo.com)
[πŸ›](https://github.com/tabrindle/envinfo/issues?q=author%3Aibolmo "Bug reports") [πŸ’»](https://github.com/tabrindle/envinfo/commits?author=ibolmo "Code") | +| [
Zac Anger](https://zacanger.com)
[πŸ’»](https://github.com/tabrindle/envinfo/commits?author=zacanger "Code") [πŸ›](https://github.com/tabrindle/envinfo/issues?q=author%3Azacanger "Bug reports") | [
Ville Immonen](https://twitter.com/VilleImmonen)
[πŸ›](https://github.com/tabrindle/envinfo/issues?q=author%3Afson "Bug reports") [πŸ’»](https://github.com/tabrindle/envinfo/commits?author=fson "Code") | [
Olmo Maldonado](http://ibolmo.com)
[πŸ›](https://github.com/tabrindle/envinfo/issues?q=author%3Aibolmo "Bug reports") [πŸ’»](https://github.com/tabrindle/envinfo/commits?author=ibolmo "Code") | [
James George](https://ghuser.io/jamesgeorge007)
[πŸ’»](https://github.com/tabrindle/envinfo/commits?author=jamesgeorge007 "Code") | This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!