Skip to content

Module '"styles-engine/patterns"' has no exported member 'getAspectRatioStyle'.ts(2305) #800

Description

@omarkhatibgg

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 62

export declare function get${upperName}Style(props?: ${upperName}Properties): SystemStyleObject

Alternatives

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions