TypeScript/JavaScript import statements

In TypeScript, and in JavaScript if you’re using modules, you can import code from other places using the import statement. This lets you bring in code from elsewhere in your project, or third party libraries from places like deno.land or NPM.

View code on GitHub

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s