Skip to content

Commit 8d3807b

Browse files
committed
♻️ 行間空ける
1 parent 5542638 commit 8d3807b

File tree

2 files changed

+35
-12
lines changed

2 files changed

+35
-12
lines changed

base.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
/** scrapboxの行のメタデータ */
22
export interface BaseLine {
3-
/** 行のid */ id: LineId;
4-
/** 行のテキスト */ text: string;
5-
/** 一番最後に行を編集した人のid */ userId: UserId;
6-
/** 行の作成日時 */ created: UnixTime;
7-
/** 行の最終更新日時 */ updated: UnixTime;
3+
id: LineId;
4+
5+
/** 行のテキスト */
6+
text: string;
7+
8+
/** 一番最後に行を編集した人のid */
9+
userId: UserId;
10+
11+
/** 行の作成日時 */
12+
created: UnixTime;
13+
14+
/** 行の最終更新日時 */
15+
updated: UnixTime;
816
}
917

1018
/** basic information about a page */

blocks.ts

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ export type Line =
77
section: {
88
/** section number */
99
number: number;
10+
1011
/** section開始行なら`true` */
1112
start: boolean;
13+
1214
/** section終了行なら`true` */
1315
end: boolean;
1416
};
@@ -38,33 +40,46 @@ export type Line =
3840

3941
/** the type which represents a line in a block */
4042
export interface Block {
41-
/** the number of indents */ indent: number;
42-
/** is the start line of this block */ start: boolean;
43-
/** is the end line of this block */ end: boolean;
43+
/** the number of indents */
44+
indent: number;
45+
46+
/** is the start line of this block */
47+
start: boolean;
48+
49+
/** is the end line of this block */
50+
end: boolean;
4451
}
4552

4653
/** the type which represents a line in a code block */
4754
export interface CodeBlock extends Block {
48-
/** the language of the code block */ lang: string;
49-
/** the file name of the code block */ filename?: string;
55+
/** the language of the code block */
56+
lang: string;
57+
58+
/** the file name of the code block */
59+
filename?: string;
5060
}
5161

5262
/** the type which represents a line in a table block */
5363
export interface TableBlock extends Block {
54-
/** the title of the table block */ title: string;
55-
/** cells included in the present line */ cells: string[];
64+
/** the title of the table block */
65+
title: string;
66+
67+
/** cells included in the present line */
68+
cells: string[];
5669
}
5770

5871
/** Helpfeel記法 */
5972
export interface Helpfeel {
6073
prefix: "?";
74+
6175
/** Helpfeel本文 */
6276
entry: string;
6377
}
6478

6579
/** Command Line記法 */
6680
export interface Cli {
6781
prefix: "$" | "%";
82+
6883
/** Command Line本文 */
6984
command: string;
7085
}

0 commit comments

Comments
 (0)