Enum tsconfig::Lib[][src]

pub enum Lib {
Show 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),
}

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
Es2017SharedMemory
Es2017String
Es2017TypedArrays
Es2018Intl
Es2018Promise
Es2018RegExp
Es2019Array
Es2019Object
Es2019String
Es2019Symbol
Es2020String
Es2020SymbolWellknown
EsNextAsyncIterable
EsNextArray
EsNextIntl
EsNextSymbol
Other(String)

Trait Implementations

impl Clone for Lib[src]

impl Debug for Lib[src]

impl<'de> Deserialize<'de> for Lib[src]

impl PartialEq<Lib> for Lib[src]

impl StructuralPartialEq for Lib[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.