Skip to content

Commit abbbef7

Browse files
committed
💥 s/Line/BaseLine
1 parent 378b463 commit abbbef7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** scrapboxの行のメタデータ */
2-
export interface Line {
2+
export interface BaseLine {
33
/** 行のid */ id: LineId;
44
/** 行のテキスト */ text: string;
55
/** 一番最後に行を編集した人のid */ userId: UserId;

blocks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { Node, NodeWithoutIndent } from "./nodes.ts";
2-
import type { Line as LineBase } from "./base.ts";
2+
import type { BaseLine } from "./base.ts";
33

44
export type Line =
5-
& LineBase
5+
& BaseLine
66
& {
77
section: {
88
/** section number */

response.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
2+
BaseLine,
23
BasePage,
3-
Line,
44
PageId,
55
ProjectId,
66
StringLc,
@@ -40,7 +40,7 @@ export interface Page extends BasePage {
4040
lastAccessed: UnixTime | null;
4141
/** 生成されたPage historyの数 */ snapshotCount: number;
4242
/** 不明。削除されたページだとfalse? */ persistent: boolean;
43-
/** ページの行情報 */ lines: Line[];
43+
/** ページの行情報 */ lines: BaseLine[];
4444
/** ページ内のリンク */ links: string[];
4545
/** ページ内のアイコン */ icons: string[];
4646
/** ページ内に含まれる、scrapbox.ioにアップロードしたファイルへのリンク */
@@ -129,7 +129,7 @@ export interface ExportedPage<hasMetadata extends true | false = false>
129129
* `hasMetadata === true`のときは行のmetadataが入る
130130
* それ以外の場合は行のテキストが入る
131131
*/
132-
lines: hasMetadata extends true ? Omit<Line, "id" | "userId">[]
132+
lines: hasMetadata extends true ? Omit<BaseLine, "id" | "userId">[]
133133
: string[];
134134
}
135135

0 commit comments

Comments
 (0)