Skip to content

Commit 99a3913

Browse files
committed
feat: add path types to path namespace
1 parent b22b929 commit 99a3913

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/runtime/deps.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
export * as async from "https://deno.land/[email protected]/async/mod.ts";
22
export type { Deferred } from "https://deno.land/[email protected]/async/mod.ts";
33
export * as path from "https://deno.land/[email protected]/path/mod.ts";
4+
export type {
5+
FormatInputPathObject,
6+
GlobOptions,
7+
GlobToRegExpOptions,
8+
ParsedPath,
9+
} from "https://deno.land/[email protected]/path/mod.ts";
410
export * as io from "https://deno.land/[email protected]/io/mod.ts";
511
export * as fs from "https://deno.land/[email protected]/fs/mod.ts";
612
export * as log from "https://deno.land/[email protected]/log/mod.ts";

types.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ import type {
1414
ArgParsingOptions as _ArgParsingOptions,
1515
Args as _Args,
1616
Deferred as _Deferred,
17+
FormatInputPathObject as _FormatInputPathObject,
18+
GlobOptions as _GlobOptions,
19+
GlobToRegExpOptions as _GlobToRegExpOptions,
20+
ParsedPath as _ParsedPath,
1721
} from "./src/runtime/deps.ts";
1822

1923
declare global {
@@ -39,6 +43,13 @@ declare global {
3943
type Deferred<T> = _Deferred<T>;
4044
}
4145

46+
namespace path {
47+
type FormatInputPathObject = _FormatInputPathObject;
48+
type GlobOptions = _GlobOptions;
49+
type GlobToRegExpOptions = _GlobToRegExpOptions;
50+
type ParsedPath = _ParsedPath;
51+
}
52+
4253
interface Window {
4354
// dzx
4455
$: $;

0 commit comments

Comments
 (0)