Skip to content
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

Merged
merged 29 commits into from
Feb 28, 2024
Merged

Refactor Library #1

merged 29 commits into from
Feb 28, 2024

Conversation

RodriSanchez1
Copy link
Collaborator

No description provided.

src/engine.ts Outdated Show resolved Hide resolved
src/engine.ts Outdated Show resolved Hide resolved
src/engine.ts Outdated Show resolved Hide resolved
Comment on lines +132 to +134
//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
Copy link
Collaborator

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

Copy link
Collaborator Author

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?

src/engine.ts Show resolved Hide resolved
src/engine.ts Show resolved Hide resolved
src/request.ts Outdated Show resolved Hide resolved
LICENSE Outdated Show resolved Hide resolved
src/engine.ts Show resolved Hide resolved
src/engine.ts Outdated Show resolved Hide resolved
src/engine.ts Outdated Show resolved Hide resolved
src/engine.ts Show resolved Hide resolved
src/engine.ts Show resolved Hide resolved
src/engine.ts Outdated Show resolved Hide resolved
src/engine.ts Outdated Show resolved Hide resolved
id: data[0].id,
text: data[0].text,
locale: data[0].language,
picto: data.map((picto: any) => picto.picto.image_url),
Copy link
Contributor

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.

Copy link
Collaborator Author

@RodriSanchez1 RodriSanchez1 Feb 28, 2024

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) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is any needed here?

Copy link
Collaborator Author

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

@RodriSanchez1 RodriSanchez1 merged commit dfb50ec into main Feb 28, 2024
@RodriSanchez1 RodriSanchez1 deleted the refactorLibrary branch February 28, 2024 21:20
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.

3 participants