Skip to content

Glossary: TypeScript Basics

export / import

Also written: export, import, module, modules

JavaScript's way to share code between files: `export` makes something available and `import` brings it in. TypeScript interfaces and types can be exported too.

Where the book teaches it

Related terms

module (compiler option)