DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
TypeScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
hard
TypeScript
Under moduleResolution 'nodenext' with an ESM package, what extension does a relative import of a .ts source file need?
A
No extension needed
B
.ts, matching the actual source file
C
.js — referencing the eventual COMPILED output's name, not the current source file's extension
D
.mjs always
Check Answer