Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(path): export private types used in public API #4645

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions path/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import type { ParsedPath } from "./_interface.ts";
import { parse as posixParse } from "./posix/parse.ts";
import { parse as windowsParse } from "./windows/parse.ts";

export type { ParsedPath } from "./_interface.ts";

/**
* Return a `ParsedPath` object of the `path`. Use `format` to reverse the result.
*
Expand Down
2 changes: 2 additions & 0 deletions path/posix/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { stripTrailingSeparators } from "../_common/strip_trailing_separators.ts
import { assertPath } from "../_common/assert_path.ts";
import { isPosixPathSeparator } from "./_util.ts";

export type { ParsedPath } from "../_interface.ts";

/**
* Return a `ParsedPath` object of the `path`.
* @param path to process
Expand Down
2 changes: 2 additions & 0 deletions path/windows/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import type { ParsedPath } from "../_interface.ts";
import { assertPath } from "../_common/assert_path.ts";
import { isPathSeparator, isWindowsDeviceRoot } from "./_util.ts";

export type { ParsedPath } from "../_interface.ts";

/**
* Return a `ParsedPath` object of the `path`.
* @param path to process
Expand Down