Skip to content

Commit

Permalink
Documentation API update (typescript notation)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arrow7000 committed May 15, 2017
1 parent db1022d commit 2797e7d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@ qew.push(['d', 'e', 'f'].map(makeFunc), arrayCallback);
qew.push(['g', 'h', 'i'].map(makeFunc), arrayCallback);
```

## API

```typescript
Qew.push(func: () => Promise<any>, cb: (err: Error, result?: any) => void): this;
Qew.push(funcs: (() => Promise<any>)[], cb: (resultArray: { result: any, error: Error }}[]) => void): this;

Qew.pushProm(func: () => Promise<any>): Promise<any>;
Qew.pushProm(funcs:( () => Promise<any>)[]): Promise<{ result: any, error: Error }}[]>;
```

## Contributing

Expand Down
1 change: 1 addition & 0 deletions src/qew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,5 @@ export = Qew;
* qew.pushProm(asyncFunc[]): Promise<({ error, result })[]>;
*
*/

// const q = new Qew(2, 100)

0 comments on commit 2797e7d

Please sign in to comment.