Skip to content

Glossary: TypeScript Beyond the Basics

import() type (JSDoc)

Also written: import("./types.js").Cafe, JSDoc import

In a JSDoc comment, `import("./types.js").Cafe` refers to a type exported from another file. It's needed because `.js` files can't contain `import type`.

Where the book teaches it

Related terms

JSDocimport type