Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid typescript error accessing dependencies #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions pjson.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ declare module "pjson" {
/**
* Names of binaries for this package
*/
export var bin : { [commandName: string]: string };
export var bin : { [key: string]: string };

/**
* Specify either a single file or an array of filenames to put in place for the man program to find.
Expand Down Expand Up @@ -144,30 +144,30 @@ declare module "pjson" {
* the lifecycle of your package. The key is the lifecycle event, and the value is
* the command to run at that point.
*/
export var scripts : { [name: string]: string };
export var scripts : { [key: string]: string }

/**
* A 'config' hash can be used to set configuration parameters used in
* package scripts that persist across upgrades.
*/
export var config : { [name: string]: any };
export var config : { [key: string]: string };

/**
* Dependencies are specified with a simple hash of package name to version range.
* The version range is a string which has one or more space-separated descriptors.
* Dependencies can also be identified with a tarball or git URL.
*/
export var dependencies : { [name: string]: any };
export var devDependencies : { [name: string]: any };
export var optionalDependencies : { [name: string]: any };
export var peerDependencies : { [name: string]: any };
export var dependencies : { [key: string]: string };
export var devDependencies : { [key: string]: string };
export var optionalDependencies : { [key: string]: string };
export var peerDependencies : { [key: string]: string };

/**
* Array of package names that will be bundled when publishing the package.
*/
export var bundleDependencies : string[];

export var engines : { [name: string]: string };
export var engines : { [key: string]: string };
export var engineStrict : boolean;
export var os : string[];
export var cpu : string[];
Expand All @@ -184,7 +184,7 @@ declare module "pjson" {
*/
export var private : boolean;

export var publishConfig : { [name: string]: any };
export var publishConfig : {};

export var dist : {
shasum : string;
Expand Down