-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
Milestone
Description
TypeScript Version: 3.9.2, 3.8.3, 3.1.6 3.0.3 (and likely more)
Search Terms:
declaration file export, non-exported types, implicit export, dts, .d.ts, es-modules declaration
Code
module.d.ts
export declare const explicitlyExported: {};
declare const implicitlyExported: {};importer.d.ts
import { implicitlyExported } from "./module"; // no error, is usable importExpected behavior:
Error: Module '"./module"' has no exported member 'implicitlyExported'.
Actual behavior:
No error.
Even thought it wasn't exported, implicitlyExported is available for import.
Playground Link:
n/a (declaration file issue)
Related Issues:
joe-barnett
Metadata
Metadata
Assignees
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.