File tree 2 files changed +7
-13
lines changed
2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -94,14 +94,14 @@ export function getPosts(channels: RawFeedChannel[]): SubstackItem[];
94
94
// Goodreads RSS Feed Parser
95
95
96
96
// Goodreads Public Types
97
- export interface GoodreadsItem {
98
- title : string [ ] ;
99
- link : string [ ] ;
100
- book_image_url : string [ ] ;
101
- author_name : string [ ] ;
102
- book_description : string [ ] ;
97
+ export type GoodreadsItem = {
98
+ title : string ;
99
+ link : string ;
100
+ book_image_url : string ;
101
+ author_name : string ;
102
+ book_description : string ;
103
103
[ key : string ] : unknown ;
104
- }
104
+ } ;
105
105
106
106
// Goodreads Public API
107
107
export const getGoodreadsFeed : (
Original file line number Diff line number Diff line change 1
1
export type RawFeed = {
2
2
rss : {
3
3
channel : RawFeedChannel [ ] ;
4
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
4
[ key : string ] : unknown ;
6
5
} ;
7
6
} ;
@@ -93,14 +92,12 @@ export type RawGoodreadsFeed = {
93
92
94
93
export type RawGoodreadsFeedRSS = {
95
94
channel : RawGoodreadsFeedChannel [ ] ;
96
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
97
95
[ key : string ] : unknown ;
98
96
} ;
99
97
100
98
export type RawGoodreadsFeedChannel = {
101
99
title : string [ ] ;
102
100
item : RawGoodreadsItem [ ] ;
103
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
104
101
[ key : string ] : unknown ;
105
102
} ;
106
103
@@ -110,14 +107,12 @@ export type RawGoodreadsItem = {
110
107
book_image_url : string [ ] ;
111
108
author_name : string [ ] ;
112
109
book_description : string [ ] ;
113
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
114
110
[ key : string ] : unknown ;
115
111
} ;
116
112
117
113
export type GoodreadsFeedChannel = {
118
114
title : string ;
119
115
item : GoodreadsItem [ ] ;
120
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
121
116
[ key : string ] : unknown ;
122
117
} ;
123
118
@@ -127,6 +122,5 @@ export type GoodreadsItem = {
127
122
book_image_url : string ;
128
123
author_name : string ;
129
124
book_description : string ;
130
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
131
125
[ key : string ] : unknown ;
132
126
} ;
You can’t perform that action at this time.
0 commit comments