Skip to content

Commit d8c25e1

Browse files
committed
🐛 RelatedPageの型定義ミスってた
1 parent e27e6a1 commit d8c25e1

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

response.ts

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,22 @@ import {
1010
import { Commit } from "./commit.ts";
1111

1212
/** 関連ページのメタデータ */
13-
export interface RelatedPage extends BasePage {
14-
/** ページ内のリンク */ linksLc: StringLc[];
15-
/** おそらく被リンク数 */ linked: number;
13+
export interface RelatedPage extends
14+
Pick<
15+
BasePage,
16+
| "id"
17+
| "title"
18+
| "image"
19+
| "descriptions"
20+
| "linked"
21+
| "updated"
22+
| "accessed"
23+
> {
24+
/** page title */
25+
titleLc: StringLc;
26+
27+
/** ページ内のリンク */
28+
linksLc: StringLc[];
1629
}
1730

1831
/** user information */
@@ -52,6 +65,9 @@ export interface Page extends BasePage {
5265
/** ページ内のリンク */
5366
links: string[];
5467

68+
/** ページ内の外部プロジェクトリンク */
69+
projectLinks: string[];
70+
5571
/** ページ内のアイコン */
5672
icons: string[];
5773

0 commit comments

Comments
 (0)