Skip to content

Commit b52b327

Browse files
committed
chore: updated types
1 parent a45a74c commit b52b327

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

index.d.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ export function getPosts(channels: RawFeedChannel[]): SubstackItem[];
9494
// Goodreads RSS Feed Parser
9595

9696
// 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;
103103
[key: string]: unknown;
104-
}
104+
};
105105

106106
// Goodreads Public API
107107
export const getGoodreadsFeed: (

lib/types.ts

-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export type RawFeed = {
22
rss: {
33
channel: RawFeedChannel[];
4-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
54
[key: string]: unknown;
65
};
76
};
@@ -93,14 +92,12 @@ export type RawGoodreadsFeed = {
9392

9493
export type RawGoodreadsFeedRSS = {
9594
channel: RawGoodreadsFeedChannel[];
96-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9795
[key: string]: unknown;
9896
};
9997

10098
export type RawGoodreadsFeedChannel = {
10199
title: string[];
102100
item: RawGoodreadsItem[];
103-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
104101
[key: string]: unknown;
105102
};
106103

@@ -110,14 +107,12 @@ export type RawGoodreadsItem = {
110107
book_image_url: string[];
111108
author_name: string[];
112109
book_description: string[];
113-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
114110
[key: string]: unknown;
115111
};
116112

117113
export type GoodreadsFeedChannel = {
118114
title: string;
119115
item: GoodreadsItem[];
120-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
121116
[key: string]: unknown;
122117
};
123118

@@ -127,6 +122,5 @@ export type GoodreadsItem = {
127122
book_image_url: string;
128123
author_name: string;
129124
book_description: string;
130-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
131125
[key: string]: unknown;
132126
};

0 commit comments

Comments
 (0)