Skip to content

Commit 3bdd903

Browse files
committed
feat: add io types to io namespace
1 parent b7d4136 commit 3bdd903

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/runtime/deps.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export type {
88
ParsedPath,
99
} from "https://deno.land/[email protected]/path/mod.ts";
1010
export * as io from "https://deno.land/[email protected]/io/mod.ts";
11+
export type { ReadLineResult } from "https://deno.land/[email protected]/io/mod.ts";
1112
export * as fs from "https://deno.land/[email protected]/fs/mod.ts";
1213
export * as log from "https://deno.land/[email protected]/log/mod.ts";
1314
export * as flags from "https://deno.land/[email protected]/flags/mod.ts";

types.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import type {
1818
GlobOptions as _GlobOptions,
1919
GlobToRegExpOptions as _GlobToRegExpOptions,
2020
ParsedPath as _ParsedPath,
21+
ReadLineResult as _ReadLineResult,
2122
} from "./src/runtime/deps.ts";
2223

2324
declare global {
@@ -50,6 +51,10 @@ declare global {
5051
type ParsedPath = _ParsedPath;
5152
}
5253

54+
namespace io {
55+
type ReadLineResult = _ReadLineResult;
56+
}
57+
5358
interface Window {
5459
// dzx
5560
$: $;

0 commit comments

Comments
 (0)