DashboardopencodeTypeScript import restrictions

TypeScript import restrictions

Category: preference
Confidence: 1.00
ID: 01a0a5c1-2755-7361-9e36-ebf993b51adb
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 0itiEhlwdVKyYbkaQ
Created: 2026-09-08 01:29:11
Updated: 2026-09-17 09:47:29

Content

Never alias imports, use star imports, or use type-position import("..."). Import canonical named exports directly; namespace-style access must use the module’s own named namespace export, such as { Project } and Project.ID. Dynamically import heavy, Node-only, or startup-sensitive modules in the narrowest branch and destructure bindings near that scope’s top; inline dynamic-import chains obscure evaluation boundaries.

Move to: