1
- import type { Denops , Entrypoint } from "./deps.ts" ;
2
- import { Lock } from "./deps.ts" ;
3
- import { ensure , is , toFileUrl } from "./deps.ts" ;
4
1
import type {
5
2
Action ,
6
3
ActionHistory ,
7
- BaseActionParams ,
8
- BaseFilterParams ,
4
+ BaseParams ,
9
5
Clipboard ,
10
6
Context ,
11
7
DduAliasType ,
@@ -39,6 +35,13 @@ import { defaultColumnOptions } from "./base/column.ts";
39
35
import { defaultKindOptions } from "./base/kind.ts" ;
40
36
import { defaultActionOptions } from "./base/action.ts" ;
41
37
38
+ import type { Denops , Entrypoint } from "jsr:@denops/std@~7.1.0" ;
39
+
40
+ import { toFileUrl } from "jsr:@std/path@~1.0.2/to-file-url" ;
41
+ import { Lock } from "jsr:@core/asyncutil@~1.1.1/lock" ;
42
+ import { is } from "jsr:@core/unknownutil@~4.3.0/is" ;
43
+ import { ensure } from "jsr:@core/unknownutil@~4.3.0/ensure" ;
44
+
42
45
export const main : Entrypoint = ( denops : Denops ) => {
43
46
type RedrawTreeMode = "collapse" | "expand" ;
44
47
type RedrawOption = {
@@ -417,7 +420,7 @@ export const main: Entrypoint = (denops: Denops) => {
417
420
) : Promise < void > {
418
421
const name = ensure ( arg1 , is . String ) as string ;
419
422
const actionName = ensure ( arg2 , is . String ) as string ;
420
- const params = ensure ( arg3 , is . Record ) as BaseActionParams ;
423
+ const params = ensure ( arg3 , is . Record ) as BaseParams ;
421
424
422
425
const ddu = getDdu ( name ) ;
423
426
if ( ddu . getOptions ( ) . ui !== "" ) {
@@ -433,7 +436,7 @@ export const main: Entrypoint = (denops: Denops) => {
433
436
const name = ensure ( arg1 , is . String ) as string ;
434
437
const actionName = ensure ( arg2 , is . String ) as string ;
435
438
const items = ensure ( arg3 , is . Array ) as DduItem [ ] ;
436
- const params = ensure ( arg4 , is . Record ) as BaseActionParams ;
439
+ const params = ensure ( arg4 , is . Record ) as BaseParams ;
437
440
438
441
const ddu = getDdu ( name ) ;
439
442
await ddu . itemAction (
@@ -449,7 +452,7 @@ export const main: Entrypoint = (denops: Denops) => {
449
452
arg1 : unknown ,
450
453
arg2 : unknown ,
451
454
arg3 : unknown ,
452
- ) : Promise < string | Action < BaseActionParams > | undefined > {
455
+ ) : Promise < string | Action < BaseParams > | undefined > {
453
456
const name = ensure ( arg1 , is . String ) as string ;
454
457
const items = ensure ( arg2 , is . Array ) as DduItem [ ] ;
455
458
const action = ensure ( arg3 , is . String ) as string ;
@@ -491,7 +494,7 @@ export const main: Entrypoint = (denops: Denops) => {
491
494
[
492
495
string ,
493
496
FilterOptions ,
494
- BaseFilterParams ,
497
+ BaseParams ,
495
498
]
496
499
> {
497
500
const name = ensure ( arg1 , is . String ) as string ;
0 commit comments