Skip to content

Commit

Permalink
paginationGeneratorのyieldの返り値を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Sep 23, 2018
1 parent 7e794f1 commit 82a0218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/Qiita.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class Qiita extends Gateway {

while (next) {
const response = await this.get<T>(next);
const result = yield response.data as T | 'reset';
const result: T | 'reset' = yield response.data;

if (result === 'reset') {
next = initialUrl;
Expand Down

0 comments on commit 82a0218

Please sign in to comment.