-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Library #1
Conversation
//TODO pedir que me de un prompt mejorado del picto a mejorar | ||
//https://platform.openai.com/docs/guides/prompt-engineering | ||
//https://learnprompting.org/es/docs/intro Imageprompting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a tech debt issue for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hectoritr Can you create this issue?
id: data[0].id, | ||
text: data[0].text, | ||
locale: data[0].language, | ||
picto: data.map((picto: any) => picto.picto.image_url), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any
should be replaced with the actual type. Or just be removed if data
variable is already typed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can i deal with this, if the data is a third party API response? I will create an issue of this.
issue #3
})); | ||
|
||
return pictogramsList; | ||
} catch (error: Error | any) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is any
needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get Catch clause variable type annotation must be 'any' or 'unknown' if specified.
if delet it. Which one is fits better in this case? any
or unknow
No description provided.