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

44 Typescript errors #48

Merged
merged 6 commits into from
May 23, 2022
Merged

44 Typescript errors #48

merged 6 commits into from
May 23, 2022

Conversation

ShiiRochi
Copy link
Owner

@ShiiRochi ShiiRochi commented May 23, 2022

This PR comes with changes in typings mainly. I didn't remove React import in WaveSurfer.tsx and enabled allowSyntheticDefaultImports in compilerOptions to leave it possible to use that package in projects based on react of version below 17.0.0.

+ update `target` from `es2015` to `es2017`
+ add `id` prop definition to `RegionProps` interface
+ enable `allowSyntheticDefaultImports` to allow default import of react
+ change `children` prop definition from `JSX.Element` to `React.ReactNode`
+ filter strings, numbers, arrays, nulls in React.Children mapper and also those w/o `props` and `type` properties
update WaveSurfer
+ update imports order
@ShiiRochi ShiiRochi self-assigned this May 23, 2022
@ShiiRochi ShiiRochi added the enhancement New feature or request label May 23, 2022
@ShiiRochi ShiiRochi merged commit ada4bdd into master May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant