by soulofmischief · 4y ago · 0 comments
import anyNamespace from 'module.js'
import { subModule } from 'module.js'
import { subModule as anyName } from 'module.js'A) I type "import {} from 'module" first and then go back and add modules
or more often these days,
B) I let Copilot guess for me, which combined with my predictable file organization usually results in the right autocomplete.
Option A can be improved upon by writing a macro/template with slots in the correct order.