Skip to content

Commit f39c4ed

Browse files
ShougoLumaKernel
andauthored
Fix type errors and update deps (#27)
* Fix type errors and update deps * Update deps.ts --------- Co-authored-by: Luma <world@luma.email>
1 parent dbe1dea commit f39c4ed

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

denops/@ddc-file/deps.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
export type { Context, Item } from "jsr:@shougo/ddc-vim@6.0.0/types";
2-
export { BaseSource } from "jsr:@shougo/ddc-vim@6.0.0/types";
1+
export type { Context, Item } from "jsr:@shougo/ddc-vim@^6.0.0/types";
2+
export { BaseSource } from "jsr:@shougo/ddc-vim@^6.0.0/types";
33
export type {
44
GatherArguments,
55
GetCompletePositionArguments,
6-
} from "jsr:@shougo/ddc-vim@6.0.0/source";
6+
} from "jsr:@shougo/ddc-vim@^6.0.0/source";
77

8-
export type { Denops } from "jsr:@denops/std@7.0.1";
9-
export * as fn from "jsr:@denops/std@7.0.1/function";
10-
export * as vars from "jsr:@denops/std@7.0.1/variable";
8+
export type { Denops } from "jsr:@denops/std@^7.0.1";
9+
export * as fn from "jsr:@denops/std@^7.0.1/function";
10+
export * as vars from "jsr:@denops/std@^7.0.1/variable";
1111

12-
export * as path from "jsr:@std/path@1.0.2";
13-
export * as fs from "jsr:@std/fs@1.0.0";
14-
export * as asserts from "jsr:@std/assert@1.0.1";
15-
export * as posix from "jsr:@std/path@1.0.2/posix";
16-
export * as windows from "jsr:@std/path@1.0.2/windows";
12+
export * as path from "jsr:@std/path@^1.0.2";
13+
export * as fs from "jsr:@std/fs@^1.0.0";
14+
export * as asserts from "jsr:@std/assert@^1.0.1";
15+
export * as posix from "jsr:@std/path@^1.0.2/posix";
16+
export * as windows from "jsr:@std/path@^1.0.2/windows";
1717

1818
export {
1919
asyncIteratorFrom as fromA,

denops/@ddc-file/util.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { path as univPath, wrapA } from "./deps.ts";
1+
import {
2+
path as univPath,
3+
posix as posixPath,
4+
windows as windowsPath,
5+
wrapA,
6+
} from "./deps.ts";
27

38
export type DirReader = (absPath: string) => AsyncIterator<string>;
49
export const defaultDirReader: DirReader = (absPath) =>
@@ -10,7 +15,7 @@ export const findMarkers = async (
1015
max: number,
1116
fromAbsNormalized: string,
1217
targets: string[],
13-
path: typeof univPath | typeof univPath.win32 | typeof univPath.posix,
18+
path: typeof univPath | typeof posixPath | typeof windowsPath,
1419
dirReader: DirReader = defaultDirReader,
1520
): Promise<string[]> => {
1621
if (max <= 0) return [];

0 commit comments

Comments
 (0)