Skip to content

Commit 7bc02f6

Browse files
committed
♻️ Selection.linesの型定義を作った
1 parent 7d4702c commit 7bc02f6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

browser/dom/selection.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// <reference lib="esnext"/>
33
/// <reference lib="dom" />
44

5-
import { BaseStore } from "../../deps/scrapbox.ts";
5+
import { BaseLine, BaseStore } from "../../deps/scrapbox.ts";
66
import { Position } from "./position.ts";
77

88
export interface Range {
@@ -13,8 +13,8 @@ export interface Range {
1313
export declare class Selection extends BaseStore {
1414
constructor();
1515

16-
/** `scrapbox.Page.lines`とほぼ同じ */
17-
get lines(): unknown[];
16+
/** 現在のページ本文を取得する */
17+
get lines(): BaseLine[];
1818

1919
/** 現在の選択範囲を取得する */
2020
getRange(init?: { normalizeOrder: boolean }): Range;

deps/scrapbox.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export type {
2+
BaseLine,
23
Line,
34
Scrapbox,
45
} from "https://raw.githubusercontent.com/scrapbox-jp/types/0.3.8/userscript.ts";

0 commit comments

Comments
 (0)