swc_ecma_parser

Type Alias TsConfig

source
pub type TsConfig = TsSyntax;
👎Deprecated: Use ‘TsSyntax’ instead

Aliased Type§

struct TsConfig {
    pub tsx: bool,
    pub decorators: bool,
    pub dts: bool,
    pub no_early_errors: bool,
    pub disallow_ambiguous_jsx_like: bool,
}

Fields§

§tsx: bool§decorators: bool§dts: bool

.d.ts

§no_early_errors: bool§disallow_ambiguous_jsx_like: bool

babel: disallowAmbiguousJSXLike Even when JSX parsing is not enabled, this option disallows using syntax that would be ambiguous with JSX (<X> y type assertions and <X>()=>{} type arguments) see: https://babeljs.io/docs/en/babel-plugin-transform-typescript#disallowambiguousjsxlike