Skip to content

Typescript definition: disable allowSyntheticDefaultImports behavior #109

Closed
@rokoroku

Description

@rokoroku
import React from "react"
       ~~~~~
// .../node_modules/@types/react/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag

Importing react-async from non-allowSyntheticDefaultImports-enabled project, the included typescript definition emits above error message.

Since the default value of the flag is not true, it'd be better turning it off I think.
microsoft/TypeScript#10895

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions