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

Redo Typescript migration #133

Merged
merged 20 commits into from
Jan 13, 2025
Merged

Redo Typescript migration #133

merged 20 commits into from
Jan 13, 2025

Conversation

Tristan-WorkGH
Copy link
Member

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?

#131

What kind of change does this PR introduce?

Re-apply fixed types of #121, with minimal changes of code outside of types (lots of @ts-ignore as consequence).

What is the current behavior?

Some classes & components in JS, and some .d.ts not in sync with JS.

What is the new behavior (if this is a feature change)?
All files migrated to TypeScript with the types fixed and unified.

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

The API is the same but the types has been updated.

Other information:

@danmarshall/deckgl-typings has been added temporally, the migration to deck.gl v9 coming soon, and the postinstall script is to cancel the copy of files that the postinstall of deckgl-typings is doing (copying files in node_modules/@types/) because it conflict with deck.gl typing preview (look at deckgl.d.ts).

Signed-off-by: Tristan Chuine <[email protected]>
Signed-off-by: Tristan Chuine <[email protected]>
Signed-off-by: Tristan Chuine <[email protected]>
Signed-off-by: Tristan Chuine <[email protected]>
Signed-off-by: Tristan Chuine <[email protected]>
Signed-off-by: Tristan Chuine <[email protected]>
Signed-off-by: Tristan Chuine <[email protected]>
Signed-off-by: Tristan Chuine <[email protected]>
Signed-off-by: Tristan Chuine <[email protected]>
Signed-off-by: Tristan Chuine <[email protected]>
Signed-off-by: Tristan Chuine <[email protected]>
Signed-off-by: Tristan Chuine <[email protected]>
seem that tsc still check json now?...
Signed-off-by: Tristan Chuine <[email protected]>
Copy link
Contributor

@amarant amarant left a comment

Choose a reason for hiding this comment

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

LGFM : this PR will bring more type safety.

@flo-dup flo-dup merged commit 10efc22 into main Jan 13, 2025
6 checks passed
@flo-dup flo-dup deleted the fixing_types branch January 13, 2025 16:31
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.

4 participants