Skip to content

feat(types): added type generation client#120

Draft
Bellian wants to merge 4 commits intostrapi:mainfrom
Bellian:feat/type-generation-client
Draft

feat(types): added type generation client#120
Bellian wants to merge 4 commits intostrapi:mainfrom
Bellian:feat/type-generation-client

Conversation

@Bellian
Copy link

@Bellian Bellian commented Mar 1, 2026

What does it do?

Implementing basic type generation and typing of endpoints.

Why is it needed?

Describe the issue you are solving.

How to test it?

Provide information about the environment and the path to verify the behaviour.

Related issue(s)/PR(s)

Let us know if this is related to any issue/pull request

*/
fetch(url: string, init?: RequestInit) {
return this._httpClient.request(url, init);
fetch<T extends GetPaths<Paths>>(url: T, init?: StrapiRequestInitPathGate<Paths, T>) {

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Jea sure. this will use the correct results directly.

Typing the fetch command will be easy.
The biggest problem I an currently having is:
What is a collection right now?
And how should it be typed.

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.

2 participants