assemblee-virtuelle / assemblee-virtuelle/semapps

Ne pas lancer des erreurs pour negotiateType

Open
#519 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
103
Forks
14
Avg merge
1m
Merged PRs (30d)
2

Description

**Problématique**
Il faudrait éviter que la fonction `negotiateType` ne lance une erreur pour qu'on ait pas à mettre des try...catch partout.

**Composants concernés**
Fonction `negotiateType` dans le package `@semapps/mime-types`.
Il faut aussi adapter toutes les fonction `negociate` du package qui se basent sur cette même fonction.

**Proposition**
Elle pourrait simplement retourner `false` quand aucun type n'est trouvé ?

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the `@semapps/mime-types` package and inspect `negotiateType` first, then trace every `negotiate` function that depends on it. Confirm how unmatched types are currently reported, decide how returning `false` should propagate, and update or add tests showing that callers no longer need `try...catch` when no type is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.