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(types): re-export some stuff from path-scurry #553

Merged
merged 1 commit into from
Sep 23, 2023

Conversation

boneskull
Copy link
Contributor

This re-exports types that are accessible via the Path objects sometimes returned by glob.

Types within path-scurry consumed only by members tagged @internal are not re-exported.


Closes #551.

So, I didn't want to re-export everything, because a) you have to be explicit about what to re-export in TypeScript v4.9.5 using the export type from syntax, so I couldn't get away with it easily, and b) some portion of the exports from path-scurry look like they're only needed for consumers writing subclasses that extend PathBase.

@boneskull
Copy link
Contributor Author

(It looks like e.g., PathBase.childrenCache could be protected?)

@boneskull
Copy link
Contributor Author

CI failing on main branch

@boneskull
Copy link
Contributor Author

This also wants FSOption

@isaacs
Copy link
Owner

isaacs commented Sep 22, 2023

Ah, yeah, some windows path issues.

@boneskull boneskull force-pushed the boneskull/re-export-path-scurry branch from 03cc59c to 0a09db8 Compare September 22, 2023 20:36
This re-exports types that are accessible via the `Path` objects sometimes returned by `glob`.

Types within `path-scurry` consumed only by members tagged `@internal` are not re-exported.

PR-URL: isaacs#553
Credit: @boneskull
Close: isaacs#553
Reviewed-by: @isaacs
@isaacs isaacs force-pushed the boneskull/re-export-path-scurry branch from 0a09db8 to 8d9f488 Compare September 23, 2023 00:47
@isaacs isaacs closed this in 8d9f488 Sep 23, 2023
@isaacs isaacs merged commit 8d9f488 into isaacs:main Sep 23, 2023
@isaacs isaacs temporarily deployed to github-pages September 23, 2023 00:48 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

return type of glob withFileTypes is not exported
2 participants