Skip to content
Merged
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
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