Skip to content

Commit

Permalink
feat(chore): Added type definitions for the data returned by envinfo (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 authored and ematipico committed Jun 5, 2019
1 parent 1b49075 commit fe80517
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/info/index.ts
Expand Up @@ -5,9 +5,16 @@ import * as process from "process";
* Prints debugging information for webpack issue reporting
*/

// TODO: define proper interface
interface Information {
Binaries: string[];
Browsers: string[];
System: string[];
npmGlobalPackages: string[];
npmPackages: string | string[];
}

// eslint-disable-next-line
export function information(): any {
export function information(): Information {
return {
Binaries: ["Node", "Yarn", "npm"],
Browsers: ["Chrome", "Firefox", "Safari"],
Expand Down

0 comments on commit fe80517

Please sign in to comment.