Closed nuymax closed 2 years ago
I wrote a next-js page which displays a Example component.
Example
pages/index.tsx
import Head from 'next/head' export default function Home() { return ( <> <Head> <title>Create Next App</title> </Head> <main> <Example /> </main> </> ) }
And I put the components/Example.tsx like this.
components/Example.tsx
export default function Example() { return ( <div> <p>hello </p> </div> ) }
Then I want to import the Example component, and I run the M-x import-js-import at the index.ts buffer.
M-x import-js-import
But I can't import the Example function.
Is it supported typescript?
Sorry this was a while ago, but importjs now fully supports typescript. Let us know if there are any continuing issues.
I wrote a next-js page which displays a
Example
component.pages/index.tsx
And I put the
components/Example.tsx
like this.Then I want to import the Example component, and I run the
M-x import-js-import
at the index.ts buffer.But I can't import the Example function.
Is it supported typescript?