Effect CommunityEC
Effect Community3y ago
8 replies
imagio

Code Style: Common Imports for Autocomplete

Code style question -- do most people here use a "common imports" file that re-exports Effect and whatnot so autocomplete can work in editors?

export * as HashMap from "@effect/data/HashMap"
export * as Option from "@effect/data/Option"
export * as ROA from "@effect/data/ReadonlyArray"
export * as Cause from "@effect/io/Cause"
export * as Config from "@effect/io/Config"
export * as Effect from "@effect/io/Effect"


I'm getting a little sick of auto-import not working and needing to type the same imports over and over. Is this pattern safe or does it have hidden problems with TS or build tooling?
Was this page helpful?