Skip to content

Commit 82a0218

Browse files
committed
paginationGeneratorのyieldの返り値を修正
1 parent 7e794f1 commit 82a0218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/Qiita.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class Qiita extends Gateway {
3131

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

3636
if (result === 'reset') {
3737
next = initialUrl;

0 commit comments

Comments
 (0)