Skip to content

Commit

Permalink
refactor(isolated-declarations): mark return struct as non exhaustive (
Browse files Browse the repository at this point in the history
…#6374)

This will let us add fields to `IsolatedDeclarationsReturn` in the future without breaking consuming code.
  • Loading branch information
DonIsaac committed Oct 9, 2024
1 parent f1bf0e8 commit a504f96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ See more at [oxc.rs](https://oxc.rs)!

## VoidZero Inc.

Oxc is a project of [VoidZero](https://voidzero.dev/), see our annoucement [Announcing VoidZero - Next Generation Toolchain for JavaScript](https://voidzero.dev/blog).
Oxc is a project of [VoidZero](https://voidzero.dev/), see our announcement [Announcing VoidZero - Next Generation Toolchain for JavaScript](https://voidzero.dev/blog).

If you have requirements for JavaScript tools at scale, please [get in touch](https://forms.gle/WQgjyzYJpwurpxWKA)!

Expand Down
1 change: 1 addition & 0 deletions crates/oxc_isolated_declarations/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub struct IsolatedDeclarationsOptions {
pub strip_internal: bool,
}

#[non_exhaustive]
pub struct IsolatedDeclarationsReturn<'a> {
pub program: Program<'a>,
pub errors: Vec<OxcDiagnostic>,
Expand Down

0 comments on commit a504f96

Please sign in to comment.