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

@emoji-mart/react and @emoji-mart/data TS types #745

Merged
merged 3 commits into from
Nov 27, 2022

Conversation

EtienneLem
Copy link
Member

@EtienneLem EtienneLem commented Nov 27, 2022

Fixes #733

@EtienneLem
Copy link
Member Author

@JoshuaKGoldberg I’m not 100% sure about the right way to export types/interface for a package that only contains JSON files. Does this commit look right to you? 93dffeb

@JoshuaKGoldberg
Copy link

This looks good! I tested it out locally in a temp directory next to a clone of emoji-mart:

import * as EmojiMartData from "../emoji-mart/packages/emoji-mart-data";

let data: EmojiMartData.Category;

Screenshot of the code snippet autocompleting Category for EmojiMartData.

@EtienneLem
Copy link
Member Author

Great, thanks a lot for testing 🙌🏼

@EtienneLem EtienneLem merged commit d5676f0 into main Nov 27, 2022
@EtienneLem EtienneLem deleted the react-and-data-types branch November 27, 2022 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is there a type definition file for @emoji-mart/data in @emoji-mart v5?
2 participants