pub enum TypeAcquisition {
Bool(bool),
Object {
enable: bool,
include: Option<BTreeSet<String>>,
exclude: Option<BTreeSet<String>>,
disable_filename_based_type_acquisition: Option<bool>,
},
}Expand description
Auto type (.d.ts) acquisition options for this project. Requires TypeScript version 2.1 or later.
Variants§
Bool(bool)
Object
Fields
§
include: Option<BTreeSet<String>>Specifies a list of type declarations to be included in auto type acquisition. Ex. [“jquery”, “lodash”]
§
exclude: Option<BTreeSet<String>>Specifies a list of type declarations to be excluded from auto type acquisition. Ex. [“jquery”, “lodash”]
§
disable_filename_based_type_acquisition: Option<bool>TypeScript’s type acquisition can infer what types should be added based on filenames in a project. This means that having a file like jquery.js in your project would automatically download the types for JQuery from DefinitelyTyped. You can disable this via disableFilenameBasedTypeAcquisition.
See more: https://www.typescriptlang.org/it/tsconfig/#type-disableFilenameBasedTypeAcquisition
Trait Implementations§
Source§impl Clone for TypeAcquisition
impl Clone for TypeAcquisition
Source§fn clone(&self) -> TypeAcquisition
fn clone(&self) -> TypeAcquisition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeAcquisition
impl Debug for TypeAcquisition
Source§impl<'de> Deserialize<'de> for TypeAcquisition
impl<'de> Deserialize<'de> for TypeAcquisition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TypeAcquisition
impl PartialEq for TypeAcquisition
Source§impl Serialize for TypeAcquisition
impl Serialize for TypeAcquisition
impl Eq for TypeAcquisition
impl StructuralPartialEq for TypeAcquisition
Auto Trait Implementations§
impl Freeze for TypeAcquisition
impl RefUnwindSafe for TypeAcquisition
impl Send for TypeAcquisition
impl Sync for TypeAcquisition
impl Unpin for TypeAcquisition
impl UnsafeUnpin for TypeAcquisition
impl UnwindSafe for TypeAcquisition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.