Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhduong committed Apr 25, 2018
1 parent c555868 commit 92a5780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ asyncData.then(num => {
```

- `.fromSync` => `any`:
It's often use inside sub-query whese are after all data already retrieve successfully or you make sure the inpurt source is sync data like as `Array`.
It's often use inside sub-query which are after all data already retrieved successfully or you make sure the input source is sync data like as `Array`.
``` ts
let query = Queryable
.from(nations)
Expand All @@ -96,7 +96,7 @@ let query = Queryable
total: Queryable.fromSync(x.items).count() // Here will return number, not Promise<number>
}
})
const asyncData = query.count() // Will return Promise<{area:string, total:number}>
const asyncData = query.toList() // Will return Promise<{area:string, total:number}>
asyncData.then(data => {
console.log(data);
// [
Expand Down

0 comments on commit 92a5780

Please sign in to comment.