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

Rework connect types and add type test setup #1766

Merged
merged 13 commits into from Jul 9, 2021

Conversation

markerikson
Copy link
Contributor

@markerikson markerikson commented Jul 9, 2021

This PR:

  • Adds the setup to run a "type tests" file locally (just a file with a bunch of TS statements inside that should compile correctly)
  • Copies the type tests file from the @types/react-redux DT package as a starting point
  • Reworks a bunch of the tests in that file to be correct (hopefully?)
  • Reworks the connect and connectAdvanced types to actually have the right function overloads
  • Adds some additional type tests for the ConnectedProps<T> type, and makes sure it's exported
  • Adds a TS test matrix for testing our types against multiple TS versions
  • Updates the API Extractor report file

Per #1737

@github-actions
Copy link

github-actions bot commented Jul 9, 2021

Size Change: +1 kB (5%) 🔍

Total Size: 20.1 kB

Filename Size Change
dist/react-redux.js 15.4 kB +1 kB (6%) 🔍
ℹ️ View Unchanged
Filename Size Change
dist/react-redux.min.js 4.71 kB 0 B

compressed-size-action

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 9, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 299824e:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration

@netlify
Copy link

netlify bot commented Jul 9, 2021

✔️ Deploy Preview for react-redux-docs ready!

🔨 Explore the source changes: 299824e

🔍 Inspect the deploy log: https://app.netlify.com/sites/react-redux-docs/deploys/60e8dcd8c6e3040008f466ae

😎 Browse the preview: https://deploy-preview-1766--react-redux-docs.netlify.app

@markerikson markerikson merged commit cb93374 into typescript-port Jul 9, 2021
@markerikson markerikson deleted the feature/ts-type-tests branch July 9, 2021 23:37
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.

None yet

1 participant