File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11/** scrapboxの行のメタデータ */
2- export interface Line {
2+ export interface BaseLine {
33 /** 行のid */ id : LineId ;
44 /** 行のテキスト */ text : string ;
55 /** 一番最後に行を編集した人のid */ userId : UserId ;
Original file line number Diff line number Diff line change 11import type { Node , NodeWithoutIndent } from "./nodes.ts" ;
2- import type { Line as LineBase } from "./base.ts" ;
2+ import type { BaseLine } from "./base.ts" ;
33
44export type Line =
5- & LineBase
5+ & BaseLine
66 & {
77 section : {
88 /** section number */
Original file line number Diff line number Diff line change 11import {
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
You can’t perform that action at this time.
0 commit comments