I'm trying to understand the differences between importing modules in JavaScript and TypeScript.
(1) Method 1: Import
const * = require('./runtime');
(1) Method 1: Export
exports.login = function() {};
(2) Method 2: Import
import * from './runtime';
(2) Method 2: Export
export function login() {};
Can anyone clarify which method is used for JavaScript and which one is for TypeScript?