Skip to content

Commit

Permalink
make params optional
Browse files Browse the repository at this point in the history
  • Loading branch information
arvitaly committed Nov 20, 2016
1 parent 9124d3c commit 129d87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import check from "./check";
export interface IParams {
timeout?: number;
}
const upself = (params: IParams) => {
const upself = (params?: IParams) => {
params = params || {};
params.timeout = params.timeout || 15000;
const packageJSONPath = path.join(path.resolve(
Expand Down

0 comments on commit 129d87c

Please sign in to comment.