Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Aug 26, 2024
1 parent 014e29c commit b8bbcd0
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 26 deletions.
12 changes: 7 additions & 5 deletions denops/ddu/app.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import type { Denops, Entrypoint } from "jsr:@denops/std@~7.0.3";
import { Lock } from "jsr:@core/asyncutil@~1.1.1/lock";
import { is } from "jsr:@core/unknownutil@~4.3.0/is";
import { ensure } from "jsr:@core/unknownutil@~4.3.0/ensure";
import { toFileUrl } from "jsr:@std/path@~1.0.2/to-file-url";
import type {
Action,
ActionHistory,
Expand Down Expand Up @@ -40,6 +35,13 @@ import { defaultColumnOptions } from "./base/column.ts";
import { defaultKindOptions } from "./base/kind.ts";
import { defaultActionOptions } from "./base/action.ts";

import type { Denops, Entrypoint } from "jsr:@denops/std@~7.0.3";

import { toFileUrl } from "jsr:@std/path@~1.0.2/to-file-url";
import { Lock } from "jsr:@core/asyncutil@~1.1.1/lock";
import { is } from "jsr:@core/unknownutil@~4.3.0/is";
import { ensure } from "jsr:@core/unknownutil@~4.3.0/ensure";

export const main: Entrypoint = (denops: Denops) => {
type RedrawTreeMode = "collapse" | "expand";
type RedrawOption = {
Expand Down
1 change: 1 addition & 0 deletions denops/ddu/base/column.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type {
DduOptions,
ItemHighlight,
} from "../types.ts";

import type { Denops } from "jsr:@denops/std@~7.0.3";

export type OnInitArguments<Params extends BaseParams> = {
Expand Down
1 change: 1 addition & 0 deletions denops/ddu/base/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type {
FilterOptions,
SourceOptions,
} from "../types.ts";

import type { Denops } from "jsr:@denops/std@~7.0.3";

export type OnInitArguments<Params extends BaseParams> = {
Expand Down
1 change: 1 addition & 0 deletions denops/ddu/base/kind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type {
PreviewContext,
Previewer,
} from "../types.ts";

import type { Denops } from "jsr:@denops/std@~7.0.3";

export type GetPreviewerArguments = {
Expand Down
1 change: 1 addition & 0 deletions denops/ddu/base/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type {
Item,
SourceOptions,
} from "../types.ts";

import type { Denops } from "jsr:@denops/std@~7.0.3";

export type OnInitArguments<Params extends BaseParams> = {
Expand Down
1 change: 1 addition & 0 deletions denops/ddu/base/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type {
UiActionCallback,
UiOptions,
} from "../types.ts";

import type { Denops } from "jsr:@denops/std@~7.0.3";

export type UiActions<Params extends BaseParams> = Record<
Expand Down
8 changes: 5 additions & 3 deletions denops/ddu/context.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import type { Denops } from "jsr:@denops/std@~7.0.3";
import { assertEquals } from "jsr:@std/assert@~1.0.2/equals";
import * as fn from "jsr:@denops/std@~7.0.3/function";
import type {
ActionOptions,
BaseParams,
Expand All @@ -16,6 +13,11 @@ import type {
import { defaultSourceOptions } from "./base/source.ts";
import { printError } from "./utils.ts";

import type { Denops } from "jsr:@denops/std@~7.0.3";
import * as fn from "jsr:@denops/std@~7.0.3/function";

import { assertEquals } from "jsr:@std/assert@~1.0.2/equals";

// where
// T: Object
// partialMerge: PartialMerge
Expand Down
16 changes: 9 additions & 7 deletions denops/ddu/ddu.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
import type { Denops } from "jsr:@denops/std@~7.0.3";
import { assertEquals } from "jsr:@std/assert@~1.0.2/equals";
import { equal } from "jsr:@std/assert@~1.0.2/equal";
import { basename } from "jsr:@std/path@~1.0.2/basename";
import * as fn from "jsr:@denops/std@~7.0.3/function";
import { Lock } from "jsr:@core/asyncutil@~1.1.1/lock";
import { SEPARATOR as pathsep } from "jsr:@std/path@~1.0.2/constants";
import type {
ActionHistory,
BaseParams,
Expand Down Expand Up @@ -53,6 +46,15 @@ import {
uiSearchItem,
} from "./ext.ts";

import type { Denops } from "jsr:@denops/std@~7.0.3";
import * as fn from "jsr:@denops/std@~7.0.3/function";

import { assertEquals } from "jsr:@std/assert@~1.0.2/equals";
import { equal } from "jsr:@std/assert@~1.0.2/equal";
import { basename } from "jsr:@std/path@~1.0.2/basename";
import { Lock } from "jsr:@core/asyncutil@~1.1.1/lock";
import { SEPARATOR as pathsep } from "jsr:@std/path@~1.0.2/constants";

type RedrawOptions = {
/**
* NOTE: Set restoreItemState to true if redraw without regather because
Expand Down
10 changes: 6 additions & 4 deletions denops/ddu/ext.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import type { Denops } from "jsr:@denops/std@~7.0.3";
import type { Lock } from "jsr:@core/asyncutil@~1.1.1/lock";
import * as fn from "jsr:@denops/std@~7.0.3/function";
import { is } from "jsr:@core/unknownutil@~4.3.0/is";
import type {
Action,
ActionName,
Expand Down Expand Up @@ -52,6 +48,12 @@ import type { BaseUi } from "./base/ui.ts";
import type { Loader } from "./loader.ts";
import { convertUserString, printError } from "./utils.ts";

import type { Denops } from "jsr:@denops/std@~7.0.3";
import * as fn from "jsr:@denops/std@~7.0.3/function";

import type { Lock } from "jsr:@core/asyncutil@~1.1.1/lock";
import { is } from "jsr:@core/unknownutil@~4.3.0/is";

type ItemActions = {
source: BaseSource<BaseParams, unknown>;
kind: BaseKind<BaseParams>;
Expand Down
12 changes: 7 additions & 5 deletions denops/ddu/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ import type { BaseKind } from "./base/kind.ts";
import type { BaseSource } from "./base/source.ts";
import type { BaseUi } from "./base/ui.ts";
import type { Denops } from "jsr:@denops/std@~7.0.3";
import { Lock } from "jsr:@core/asyncutil@~1.1.1/lock";
import { isDenoCacheIssueError } from "./utils.ts";
import { mods } from "./_mods.js";

import * as fn from "jsr:@denops/std@~7.0.3/function";
import * as op from "jsr:@denops/std@~7.0.3/option";

import { basename } from "jsr:@std/path@~1.0.2/basename";
import { parse } from "jsr:@std/path@~1.0.2/parse";
import { toFileUrl } from "jsr:@std/path@~1.0.2/to-file-url";
import * as fn from "jsr:@denops/std@~7.0.3/function";
import * as op from "jsr:@denops/std@~7.0.3/option";
import { isDenoCacheIssueError } from "./utils.ts";
import { mods } from "./_mods.js";
import { Lock } from "jsr:@core/asyncutil@~1.1.1/lock";

type Mod = {
// deno-lint-ignore no-explicit-any
Expand Down
5 changes: 3 additions & 2 deletions denops/ddu/state.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { is } from "jsr:@core/unknownutil@~4.3.0/is";
import { maybe } from "jsr:@core/unknownutil@~4.3.0/maybe";
import type { BaseParams, DduItem, SourceOptions } from "./types.ts";
import type { BaseSource } from "./base/source.ts";

import { is } from "jsr:@core/unknownutil@~4.3.0/is";
import { maybe } from "jsr:@core/unknownutil@~4.3.0/maybe";

export type AvailableSourceInfo<
Params extends BaseParams = BaseParams,
UserData extends unknown = unknown,
Expand Down

0 comments on commit b8bbcd0

Please sign in to comment.