Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptdeclaration mergingSingle-choice MCQ

Why does referring to `Combined` as both a type and a value succeed here?

function Combined() { return 1; } namespace Combined { export const tag = "x"; } type Combined = ReturnType<typeof Combined>;