Skip to content

Conversation

msutkowski
Copy link
Member

@msutkowski msutkowski commented Feb 5, 2022

I opened a PR over in oazapfts here: oazapfts/oazapfts#207. I'd prefer to not be blocked on them merging that PR or a similar one that is referenced in the linked PR. So this would allow us to patch this behavior for our users in the short term.

Update

This now uses a patched version of oazapfts (@rtk-query/oazapfts-patched) located at https://github.com/rtk-incubator/oazapfts

  • Adds test for intersection types

Fixes #2002 #1940

@msutkowski msutkowski requested a review from phryneas February 5, 2022 21:51
Comment on lines +472 to +474
export type Dog = Animal & {
dogUniqueProp?: string | null;
};
Copy link
Member Author

Choose a reason for hiding this comment

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

Currently, we don't generate this intersection and only do export type Dog = Animal.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 5, 2022

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 e804687:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration
rsk-github-issues-example Configuration
@examples-query-react/basic Configuration
reduxjs/redux-toolkit Configuration
@examples-action-listener/counter Configuration

@netlify
Copy link

netlify bot commented Feb 5, 2022

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit b1478e3
🔍 Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/6294e2a3d61cf7000896c7cd
😎 Deploy Preview https://deploy-preview-2004--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

github-actions bot commented Feb 5, 2022

size-limit report 📦

Path Size
1. entry point: @reduxjs/toolkit (cjs.production.min.js) 12.93 KB (0%)
1. entry point: @reduxjs/toolkit (esm.js) 10.79 KB (0%)
1. entry point: @reduxjs/toolkit/query (cjs.production.min.js) 22.67 KB (0%)
1. entry point: @reduxjs/toolkit/query (esm.js) 19.04 KB (0%)
1. entry point: @reduxjs/toolkit/query/react (cjs.production.min.js) 24.91 KB (0%)
1. entry point: @reduxjs/toolkit/query/react (esm.js) 21.73 KB (0%)
2. entry point: @reduxjs/toolkit (without dependencies) (cjs.production.min.js) 5.71 KB (0%)
2. entry point: @reduxjs/toolkit (without dependencies) (esm.js) 5.67 KB (0%)
2. entry point: @reduxjs/toolkit/query (without dependencies) (cjs.production.min.js) 10.12 KB (0%)
2. entry point: @reduxjs/toolkit/query (without dependencies) (esm.js) 10.55 KB (0%)
2. entry point: @reduxjs/toolkit/query/react (without dependencies) (cjs.production.min.js) 2.8 KB (0%)
2. entry point: @reduxjs/toolkit/query/react (without dependencies) (esm.js) 3.21 KB (0%)
3. createSlice (esm.js) 5.03 KB (0%)
3. createEntityAdapter (esm.js) 6.28 KB (0%)
3. configureStore (esm.js) 5.65 KB (0%)
3. createApi (esm.js) 17.24 KB (0%)
3. createApi (react) (esm.js) 19.95 KB (0%)
3. fetchBaseQuery (esm.js) 11.63 KB (0%)
3. setupListeners (esm.js) 10.42 KB (0%)
3. ApiProvider (esm.js) 18.58 KB (0%)

@phryneas
Copy link
Member

phryneas commented Mar 4, 2022

Could you publish that as a scoped package to npm? I'm not comfortable adding a dependency directly from github.

@phryneas
Copy link
Member

phryneas commented May 7, 2022

ping - could you please take a look if this is still not upstream and publish that package?

@msutkowski msutkowski force-pushed the codegen-use-patched-oazapfts branch from b1478e3 to e804687 Compare June 2, 2022 01:48
@msutkowski msutkowski changed the base branch from master to prepare-codegen-1.1 June 2, 2022 01:48
@msutkowski msutkowski merged commit 9e81d73 into prepare-codegen-1.1 Jun 2, 2022
@msutkowski msutkowski deleted the codegen-use-patched-oazapfts branch June 2, 2022 01:49
msutkowski added a commit that referenced this pull request Jul 3, 2022
… gen (#2004)

* Add test for intersection types, reference github commit for patched oazapfts
* Use @rtk-query/oazapfts-patched and updated refs
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.

Inheritance in openApi code generation incorrect.

2 participants