Skip to content

Commit f5c67b0

Browse files
committed
refactor: Delete as many deps/*.ts as possible
1 parent 2656284 commit f5c67b0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+105
-174
lines changed

browser/dom/_internal.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "../../deps/testing.ts";
1+
import { assertEquals } from "@std/assert";
22
import { decode, encode } from "./_internal.ts";
33

44
Deno.test("encode()", async (t) => {

browser/dom/cursor.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type BaseLine, BaseStore } from "../../deps/scrapbox.ts";
1+
import { type BaseLine, BaseStore } from "@cosense/types/userscript";
22
import type { Position } from "./position.ts";
33
import type { Page } from "./page.d.ts";
44

browser/dom/edit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { press } from "./press.ts";
33
import { getLineCount } from "./node.ts";
44
import { range } from "../../range.ts";
55
import { textInput } from "./dom.ts";
6-
import { isArray, isNumber, isString } from "../../deps/unknownutil.ts";
6+
import { isArray, isNumber, isString } from "@core/unknownutil";
77
import { delay } from "@std/async/delay";
88

99
export const undo = (count = 1): void => {

browser/dom/extractCodeFiles.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { extractCodeFiles } from "./extractCodeFiles.ts";
2-
import type { Line } from "../../deps/scrapbox.ts";
3-
import { assertSnapshot } from "../../deps/testing.ts";
2+
import type { Line } from "@cosense/types/userscript";
3+
import { assertSnapshot } from "@std/testing/snapshot";
44
import sample from "./sample-lines1.json" with { type: "json" };
55

66
Deno.test("extractCodeFiles", async (t) => {

browser/dom/extractCodeFiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Line } from "../../deps/scrapbox.ts";
1+
import type { Line } from "@cosense/types/userscript";
22

33
/** 一つのソースコードを表す */
44
export interface CodeFile {

browser/dom/getCachedLines.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Line, Scrapbox } from "../../deps/scrapbox.ts";
1+
import type { Line, Scrapbox } from "@cosense/types/userscript";
22
declare const scrapbox: Scrapbox;
33

44
let isLatestData = false;

browser/dom/node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { isNumber, isString, isUndefined } from "../../deps/unknownutil.ts";
1+
import { isNumber, isString, isUndefined } from "@core/unknownutil";
22
import { ensureArray } from "../../ensure.ts";
33
import { getCachedLines } from "./getCachedLines.ts";
44
import { takeInternalLines } from "./takeInternalLines.ts";
5-
import type { BaseLine, Line } from "../../deps/scrapbox.ts";
5+
import type { BaseLine, Line } from "@cosense/types/userscript";
66
import { lines } from "./dom.ts";
77
import * as Text from "../../text.ts";
88

browser/dom/open.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
type PageTransitionContext,
44
pushPageTransition,
55
} from "./pushPageTransition.ts";
6-
import type { Scrapbox } from "../../deps/scrapbox.ts";
6+
import type { Scrapbox } from "@cosense/types/userscript";
77
declare const scrapbox: Scrapbox;
88

99
export interface OpenOptions {

browser/dom/page.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { BaseStore } from "../../deps/scrapbox.ts";
2-
import type { Page as PageData } from "../../deps/scrapbox-rest.ts";
1+
import { BaseStore } from "@cosense/types/userscript";
2+
import type { Page as PageData } from "@cosense/types/rest";
33

44
export interface SetPositionOptions {
55
/** カーソルが画面外に移動したとき、カーソルが見える位置までページをスクロールするかどうか

browser/dom/selection.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type BaseLine, BaseStore } from "../../deps/scrapbox.ts";
1+
import { type BaseLine, BaseStore } from "@cosense/types/userscript";
22
import type { Position } from "./position.ts";
33

44
export interface Range {

0 commit comments

Comments
 (0)