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: Type 'void' is not assignable to type 'string' on twemoji.parse typing. #535

Closed
wants to merge 1 commit into from

Conversation

hthetiot
Copy link
Contributor

@hthetiot hthetiot commented Mar 15, 2022

Look like it was reverted in previous PR commits.
This fix the issue in that comment: #532 (comment)

Once released, i can make a PR to update @joeattardi/emoji-button to use 14.0.2 and fix the issue #534

To reproduce the error that is fixed by this PR

  1. git clone https://github.com/joeattardi/emoji-button.git
  2. npm i
  3. npm i twemoji@14.0.1
  4. npm run build
  5. See error emoji-button/src/lazyLoad.ts(40,5): semantic error TS2322: Type 'void' is not assignable to type 'string'.

@hthetiot hthetiot mentioned this pull request Mar 15, 2022
@hthetiot
Copy link
Contributor Author

I'm checking if we can fix legacy import { ParseObject } from 'twemoji'; usage in the same PR.

@hthetiot
Copy link
Contributor Author

hthetiot commented Mar 15, 2022

I cannot find reference to ParseObject in 13.0.0 see usage here:

I guess they have to use 13.0.0 and should be good, this PR does fix bad typing for #532 (comment) and other library that relly on return type for parse.

@jdecked
Copy link
Contributor

jdecked commented Mar 31, 2022

superseded by #541

@jdecked jdecked closed this Mar 31, 2022
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.

2 participants