Description
openedon Jan 16, 2019
PR #1002 adds support for declarations like this:
import * as React from 'react';
This is a trivial implementation, where we pretend that *
is an actual name exported by the "react"
package. It does not work for the general form that introduces a new namespace, for example:
// For example, "Button" in controls.ts becomes "controls.Button"
import * as controls from './controls';
This form is called ts.SyntaxKind.NamespaceImport
because it is essentially a more general form of the namespace controls { }
declaration kind.
As such, it should probably produce an ApiItemKind.Namespace
item.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment