Skip to content

Commit

Permalink
feat(isolated-declarations): impl Default for options (#6372)
Browse files Browse the repository at this point in the history
Makes using ID options more ergonomic.
  • Loading branch information
DonIsaac committed Oct 9, 2024
1 parent 834ee2a commit 15dfc1d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions crates/oxc_isolated_declarations/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,16 @@ use rustc_hash::{FxHashMap, FxHashSet};

use crate::scope::ScopeTree;

#[derive(Debug, Clone, Copy)]
#[derive(Debug, Default, Clone, Copy)]
pub struct IsolatedDeclarationsOptions {
/// Do not emit declarations for code that has an @internal annotation in its JSDoc comment.
/// This is an internal compiler option; use at your own risk, because the compiler does not check that the result is valid.
/// <https://www.typescriptlang.org/tsconfig/#stripInternal>
/// Do not emit declarations for code that has an `@internal` annotation in its JSDoc comment.
/// This is an internal compiler option; use at your own risk, because the compiler does not
/// check that the result is valid.
///
/// Default: `false`
///
/// ## References
/// [TSConfig - `stripInternal`](https://www.typescriptlang.org/tsconfig/#stripInternal)
pub strip_internal: bool,
}

Expand Down

0 comments on commit 15dfc1d

Please sign in to comment.