Technical/fix tanstack types#74
Open
vitrivdolkom wants to merge 3 commits into
Open
Conversation
debabin
reviewed
Jun 27, 2026
| config?: Partial<FetchOptions>; | ||
| }; | ||
|
|
||
| export type UnwrapPromise<T> = T extends Promise<infer U> ? U : T; |
Member
There was a problem hiding this comment.
есть тип же готовый в awaible чот такое
Contributor
Author
There was a problem hiding this comment.
там есть Awaited, но он не работает с методами класса, просто не может почему то взять и зарезолвить промис в ответе метода класса, я по разному пытался передать но там какое то ограничение на это
vitrivdolkom
commented
Jun 29, 2026
| if ( | ||
| Object.entries(responses).some( | ||
| ([code, response]) => /[45].*/.test(code) && !isUnknownSchema(response?.schema) | ||
| ([code, response]) => /^[45].*$/.test(code) && !isUnknownSchema(response?.schema) |
Contributor
Author
There was a problem hiding this comment.
это фикс что errors неверно определялось на узб коллекторе. В общем регулярки не верные были
vitrivdolkom
commented
Jun 29, 2026
| ), | ||
| undefined, | ||
| !plugin.config.runtimeInstancePath | ||
| plugin.config.baseUrl |
Contributor
Author
There was a problem hiding this comment.
для классов добавил прокидывание baseUrl
| @@ -0,0 +1,3 @@ | |||
| import { capitalize } from './capitalize'; | |||
|
|
|||
| export const getRequestErrorTypeName = (requestId: string) => `${capitalize(requestId)}Error`; | |||
Contributor
Author
There was a problem hiding this comment.
миллион раз нужно получить нейминг для типа ошибка, вынес в функцию
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.