stable

Clone or download

Read-only

Implement request #32632 getAllJSON should have default collection type parameter

No functional change expected. Notes: The order of the generic type parameters is reversed: you now only need to provide the type of item you expect to get in the returned array. If the endpoint returns arrays, that's it, everything works. If the endpoint returns an object shape, you need to specify the shape of the JSON payload (as well as the `getCollectionCallback`), just like before. Change-Id: Ia15a1484feb0612400de8b8ed5e7a289a615efcf

Modified Files

Name
M lib/frontend/fetch-result/README.md +1 −1 Go to diff View file
M lib/frontend/fetch-result/src/AllGetter.ts +7 −7 Go to diff View file
M lib/frontend/fetch-result/src/main.ts +1 −1 Go to diff View file
M plugins/document/scripts/document/api/log-rest-querier.ts +1 −1 Go to diff View file
M plugins/document/scripts/document/api/version-rest-querier.ts +5 −8 Go to diff View file
M plugins/git/scripts/artifact-create-branch-action/api/rest_querier.ts +1 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/api/tuleap-rest-querier.ts +17 −23 Go to diff View file
M plugins/roadmap/scripts/configure-widget/src/components/App.vue +3 −6 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.test.ts +1 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.ts +20 −26 Go to diff View file