pub enum Lib {
Show 42 variants
Es5,
Es2015,
Es6,
Es2016,
Es7,
Es2017,
Es2018,
Es2019,
Es2020,
EsNext,
Dom,
WebWorker,
ScriptHost,
DomIterable,
Es2015Core,
Es2015Generator,
Es2015Iterable,
Es2015Promise,
Es2015Proxy,
Es2015Reflect,
Es2015Symbol,
Es2015SymbolWellKnown,
Es2016ArrayInclude,
Es2017Object,
Es2017Intl,
Es2017SharedMemory,
Es2017String,
Es2017TypedArrays,
Es2018Intl,
Es2018Promise,
Es2018RegExp,
Es2019Array,
Es2019Object,
Es2019String,
Es2019Symbol,
Es2020String,
Es2020SymbolWellknown,
EsNextAsyncIterable,
EsNextArray,
EsNextIntl,
EsNextSymbol,
Other(String),
}
Expand description
Available definitions for built-in JS APIs.
TypeScript includes a default set of type definitions for built-in JS APIs (like Math), as well as type definitions for things found in browser environments (like document). TypeScript also includes APIs for newer JS features matching the target you specify; for example the definition for Map is available if target is ES6 or newer.
You may want to change these for a few reasons:
- Your program doesn’t run in a browser, so you don’t want the “dom” type definitions
- Your runtime platform provides certain JavaScript API objects (maybe through polyfills), but doesn’t yet support the full syntax of a given ECMAScript version
- You have polyfills or native implementations for some, but not all, of a higher level ECMAScript version
Variants§
Es5
Es2015
Es6
Es2016
Es7
Es2017
Es2018
Es2019
Es2020
EsNext
Dom
WebWorker
ScriptHost
DomIterable
Es2015Core
Es2015Generator
Es2015Iterable
Es2015Promise
Es2015Proxy
Es2015Reflect
Es2015Symbol
Es2015SymbolWellKnown
Es2016ArrayInclude
Es2017Object
Es2017Intl
Es2017String
Es2017TypedArrays
Es2018Intl
Es2018Promise
Es2018RegExp
Es2019Array
Es2019Object
Es2019String
Es2019Symbol
Es2020String
Es2020SymbolWellknown
EsNextAsyncIterable
EsNextArray
EsNextIntl
EsNextSymbol
Other(String)
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Lib
Auto Trait Implementations§
impl RefUnwindSafe for Lib
impl Send for Lib
impl Sync for Lib
impl Unpin 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
Mutably borrows from an owned value. Read more