mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
feat(isolated-declarations): impl Default for options (#6372)
Makes using ID options more ergonomic.
This commit is contained in:
parent
834ee2aa6c
commit
15dfc1db95
1 changed files with 9 additions and 4 deletions
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue