Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enum export #7307

Merged
merged 3 commits into from
Mar 4, 2025
Merged

fix: enum export #7307

merged 3 commits into from
Mar 4, 2025

Conversation

bvandercar-vt
Copy link
Contributor

Since these were recently changed to be enums and types, we need to do export instead of export type so that we can use it as a constant.

Currently, when we try to do.

import { Size } from '@blueprintjs/core'

...

<Button>
   size={Size.LARGE}

We get the error "'Size' cannot be used as a value because it was exported using 'export type'."

Copy link
Contributor

@ggdouglas ggdouglas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the catch!

@jscheiny jscheiny merged commit 690c057 into palantir:develop Mar 4, 2025
14 of 15 checks passed
@bvandercar-vt bvandercar-vt deleted the fix/enum-export branch March 4, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants