feat: export CactusImage to make it available for consumers#12
feat: export CactusImage to make it available for consumers#12aryaminus wants to merge 2 commits intocactus-compute:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR exports the CactusImage class from the library's main entry point (src/index.tsx), making it publicly available for consumers. Previously, CactusImage was only exported from the internal src/native/ module but not exposed through the top-level API.
Key Changes:
- Added export statement for
CactusImagefrom./native/CactusImagein the main index file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -1,5 +1,7 @@ | |||
| // Classes | |||
| export { CactusLM } from './classes/CactusLM'; | |||
| export { CactusImage } from './native/CactusImage'; | |||
There was a problem hiding this comment.
The CactusImage export is placed under the "// Classes" comment, but it's actually a native module from the ./native/ directory. This should either be moved to a "// Native" section (similar to how there are separate sections for Classes, Hooks, Types, and Config) or placed under a more generic section name. This helps maintain clear organization of different module types in the public API.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Summary
CactusImagefromsrc/index.tsx.Motivation
CactusImagewas previously internal or not exposed via the main entry point. Exporting it allows the example app and other consumers of the library to import and useCactusImagedirectly.