Module '"styles-engine/patterns"' has no exported member 'getAspectRatioStyle'.ts(2305) #807
omarkhatibco
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
Hey @omarkhatibco, We're not exposing some artifact types to allow for API feasibility in the future. The internal JS pattern is one of those. Sorry. I'd recommend moving away from the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
In order to support the
as
prop locally, I have to duplicate the generated components inside my own design system, so I'm trying to use the same logic used inside the components.the problem it seems that getAspectRatioStyle is exported but the types for that function is not, could you please export the types as well?
Problem Statement/Justification
Since the function is exported. it make more sense to make it type safe and allow up to replicate the same logic
Proposed Solution or API
adding inside the
packages/generator/src/artifacts/js/pattern.ts#L62
line 62Alternatives
No response
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions