Question #137

Author: admin
tags: JavaScript  
import { doSomething } from './some_module.js';
How to change name of the imported value if it is a non-default import?
import { doSomething }: { newName } from './some_module.js';
import { doSomething as newName } from './some_module.js';
import { doSomething: newName } from './some_module.js';
import { newName = doSomething } from './some_module.js';
There is no way to do this
Rate the difficulty of the question:
easyhard