Skip to content

Commit

Permalink
refactor: HttpClient の option の型を厳格にした
Browse files Browse the repository at this point in the history
  • Loading branch information
kasaharu committed Sep 17, 2024
1 parent ee976bd commit 19b1918
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ export class FeedGateway {
constructor(private readonly http: HttpClient) {}

getRssResponse(): Observable<RssFeed> {
// FIXME: 型に object を使うのをやめる
const requestOptions: object = {
observe: 'body',
responseType: 'text',
};
const requestOptions: Record<string, unknown> = { observe: 'body', responseType: 'text' };
return this.http.get<RssFeed>('https://kasaharu.hatenablog.com/rss', requestOptions);
}
}

0 comments on commit 19b1918

Please sign in to comment.