refactor: rename ALS instances to prevent bad auto imports (#73480)
this is a little quality-of-life improvement, with no behavioral changes. it's slightly silly though. for bundling reasons, our ALSes should only ever be imported from `some-async-storage.external`, not `some-async-storage-instance`. unfortunately editor autocomplete doesn't care about that, and always suggests `-instance` first. we can solve this by renaming the undesireable one from `someAsyncStorage` to `someAsyncStorageInstace`, which makes it rank lower in the autocomplete suggestions, so the top suggestion becomes the correct one. before the rename: <img width="617" alt="Screenshot 2024-12-03 at 17 53 24" src="https://github.com/user-attachments/assets/750f653a-f108-4fbf-9da5-4825dac6389d"> after the rename: <img width="587" alt="Screenshot 2024-12-03 at 17 52 45" src="https://github.com/user-attachments/assets/fa016050-9df3-44fb-b0c1-2821f84696dc"> ### Alternatives considered marking the instance with `/** @ignore */` doesn't work, because JSDoc comments propagate to reexports, so it hides *both* from autocomplete, which sucks.
Showing
Please
register
or
sign in
to comment