pub enum Lib {
Show 14 variants
Es5,
Es2015,
Es2016,
Es2017,
Es2018,
Es2019,
Es2020,
Es2021,
Es2022,
Es2023,
EsNext,
Dom,
WebWorker,
ScriptHost,
}Expand description
Specify a set of bundled library declaration files that describe the target runtime environment. See more: https://www.typescriptlang.org/tsconfig#lib
Variants§
Es5
Core definitions for all ES5 functionality
Es2015
Additional APIs available in ES2015 (also known as ES6) - array.find, Promise, Proxy, Symbol, Map, Set, Reflect, etc.
Es2016
Additional APIs available in ES2016 - array.include, etc.
Es2017
Additional APIs available in ES2017 - Object.entries, Object.values, Atomics, SharedArrayBuffer, date.formatToParts, typed arrays, etc.
Es2018
Additional APIs available in ES2018 - async iterables, promise.finally, Intl.PluralRules, regexp.groups, etc.
Es2019
Additional APIs available in ES2019 - array.flat, array.flatMap, Object.fromEntries, string.trimStart, string.trimEnd, etc.
Es2020
Additional APIs available in ES2020 - string.matchAll, etc.
Es2021
Additional APIs available in ES2021 - promise.any, string.replaceAll etc.
Es2022
Additional APIs available in ES2022 - array.at, RegExp.hasIndices, etc.
Es2023
Additional APIs available in ES2023 - array.with, array.findLast, array.findLastIndex, array.toSorted, array.toReversed, etc.
EsNext
Additional APIs available in ESNext - This changes as the JavaScript specification evolves
Dom
DOM definitions - window, document, etc.
WebWorker
APIs available in WebWorker contexts
ScriptHost
APIs for the Windows Script Hosting System
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lib
impl<'de> Deserialize<'de> for Lib
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>,
Source§impl Ord for Lib
impl Ord for Lib
Source§impl PartialOrd for Lib
impl PartialOrd for Lib
impl Eq for Lib
impl StructuralPartialEq for Lib
Auto Trait Implementations§
impl Freeze for Lib
impl RefUnwindSafe for Lib
impl Send for Lib
impl Sync for Lib
impl Unpin for Lib
impl UnsafeUnpin for Lib
impl UnwindSafe for Lib
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.