Skip to content

Overhaul typing support#1104

Closed
jdalrymple wants to merge 62 commits into
masterfrom
1088-union-typing
Closed

Overhaul typing support#1104
jdalrymple wants to merge 62 commits into
masterfrom
1088-union-typing

Conversation

@jdalrymple

@jdalrymple jdalrymple commented Aug 22, 2020

Copy link
Copy Markdown
Owner

Summary

  • Updating camelCase and snake_case types to be handled conditionally
  • Expanding return types to show correct information and proper defaults if unset

Played around with conditional typing. Sorta based off this

Specific example here

fixes: #1088 #1306 #1482 #1218 #519

Update

Finally got the typing to work, next steps are:

  • Going through and implementing the new format throughout the services codebase
  • Updates tests to maintain 90% coverage
  • Verifying the typing information present with the Gitlab API Docs.
  • Double check typing information present with the Gitlab API Docs.
  • Double check connected issues have been solved
📦 Published PR as canary version: 29.0.0--canary.1104.301157685.0

✨ Test out this PR locally via:

npm install @gitbeaker/browser@29.0.0--canary.1104.301157685.0
npm install @gitbeaker/cli@29.0.0--canary.1104.301157685.0
npm install @gitbeaker/core@29.0.0--canary.1104.301157685.0
npm install @gitbeaker/node@29.0.0--canary.1104.301157685.0
npm install @gitbeaker/requester-utils@29.0.0--canary.1104.301157685.0
# or 
yarn add @gitbeaker/browser@29.0.0--canary.1104.301157685.0
yarn add @gitbeaker/cli@29.0.0--canary.1104.301157685.0
yarn add @gitbeaker/core@29.0.0--canary.1104.301157685.0
yarn add @gitbeaker/node@29.0.0--canary.1104.301157685.0
yarn add @gitbeaker/requester-utils@29.0.0--canary.1104.301157685.0

@jdalrymple jdalrymple added bug release:canary Deploy canary release labels Aug 22, 2020
@jdalrymple jdalrymple changed the title Experiment with extensions Fixing union types that are used to control camelCase and snake_case response objects Aug 22, 2020
@jdalrymple

Copy link
Copy Markdown
Owner Author

So this should technically work, but ill have to update alot more references i think.

@jdalrymple jdalrymple marked this pull request as draft August 22, 2020 12:39
@jdalrymple jdalrymple force-pushed the 1088-union-typing branch 2 times, most recently from e787947 to 4460a84 Compare October 13, 2020 22:34
dependabot-preview Bot and others added 6 commits December 18, 2020 15:18
Bumps [auto](https://github.com/intuit/auto) from 9.50.1 to 9.52.0.
- [Release notes](https://github.com/intuit/auto/releases)
- [Changelog](https://github.com/intuit/auto/blob/master/CHANGELOG.md)
- [Commits](intuit/auto@v9.50.1...v9.52.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Justin Dalrymple <jdalrymple@users.noreply.github.com>
@jdalrymple

Copy link
Copy Markdown
Owner Author

Having trouble sorting out the typings :( I posted up an example situation on SO to hopefully get some guidance

@jdalrymple jdalrymple removed the bug label Apr 4, 2021
@jdalrymple

Copy link
Copy Markdown
Owner Author

Finished the first pass, going to double check what has been added and include supplemental TODO's for the next PR

@jdalrymple

Copy link
Copy Markdown
Owner Author

Breaking this PR up into cleaner pieces

@jdalrymple jdalrymple closed this May 11, 2021
@jdalrymple jdalrymple deleted the 1088-union-typing branch May 14, 2021 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:canary Deploy canary release

Projects

None yet

1 participant