Skip to content

Commit 19db68a

Browse files
committed
💪 Use relative import for Denops types
Except for generated codes.
1 parent 65a3b7f commit 19db68a

28 files changed

+28
-38
lines changed

autocmd/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v6.0.5/mod.ts";
1+
import type { Denops } from "../mod.ts";
22
import {
33
AutocmdEvent,
44
DefineOptions,

autocmd/group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v6.0.5/mod.ts";
1+
import type { Denops } from "../mod.ts";
22
import { execute } from "../helper/execute.ts";
33
import { AutocmdEvent, DefineOptions, RemoveOptions } from "./types.ts";
44
import { buildDefineExpr, buildRemoveExpr } from "./utils.ts";

batch/batch.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import type {
2-
Context,
3-
Denops,
4-
Dispatcher,
5-
Meta,
6-
} from "https://deno.land/x/denops_core@v6.0.5/mod.ts";
1+
import type { Context, Denops, Dispatcher, Meta } from "../mod.ts";
72

83
type Redraw = undefined | boolean;
94

batch/collect.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import type {
2-
Context,
3-
Denops,
4-
Dispatcher,
5-
Meta,
6-
} from "https://deno.land/x/denops_core@v6.0.5/mod.ts";
1+
import type { Context, Denops, Dispatcher, Meta } from "../mod.ts";
72

83
type VimVoid<T> = T extends void ? 0 : T;
94

batch/collect_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
assertRejects,
44
} from "https://deno.land/std@0.211.0/assert/mod.ts";
55
import { test } from "https://deno.land/x/denops_test@v1.6.0/mod.ts";
6-
import type { Denops } from "https://deno.land/x/denops_core@v6.0.5/mod.ts";
6+
import type { Denops } from "../mod.ts";
77
import { collect } from "./collect.ts";
88

99
test({

buffer/buffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v6.0.5/mod.ts";
1+
import type { Denops } from "../mod.ts";
22
import { maybe } from "https://deno.land/x/unknownutil@v3.11.0/mod.ts";
33
import * as autocmd from "../autocmd/mod.ts";
44
import * as batch from "../batch/mod.ts";

buffer/decoration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v6.0.5/mod.ts";
1+
import type { Denops } from "../mod.ts";
22
import * as batch from "../batch/mod.ts";
33
import * as vimFn from "../function/vim/mod.ts";
44
import * as nvimFn from "../function/nvim/mod.ts";

function/buffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v6.0.5/mod.ts";
1+
import type { Denops } from "../mod.ts";
22
import type { BufInfo, ChangeList, MarkInformation } from "./types.ts";
33

44
/**

function/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v6.0.5/mod.ts";
1+
import type { Denops } from "../mod.ts";
22

33
/**
44
* The result is a Number, which is `TRUE` if **{expr}** is defined,

function/cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v6.0.5/mod.ts";
1+
import type { Denops } from "../mod.ts";
22
import type { Position, ScreenPos } from "./types.ts";
33

44
/**

0 commit comments

Comments
 (0)