Freelancer: alvaro1dev
Compartilhar:
Denunciar Inscrição

Code translated to TypeScript

Hi, I just translated your JavaScript code to TypeScript. Please let me know if you have any question about my submit.


                                                                                                            Inscrição nº                                         2
                                     do Concurso para                                         Translate function to TypeScript
Inscrição nº2

Painel de Comentários

  • alvaro1dev
    alvaro1dev
    • 3 meses atrás

    "ReferencesSchema" is an interface I created for the output of the function, is not the same that the constant "referencesSchema".
    This output of type "ReferencesSchema" may then pass for Joi validation if neccessary.

    • 3 meses atrás
  • andrey0savelev
    andrey0savelev
    • 3 meses atrás

    ReferencesSchema is Joi object to validate the value. it is not a typescript interface. so it can not be used in the definition of the exportReferences function.

    • 3 meses atrás
  • andrey0savelev
    andrey0savelev
    • 3 meses atrás

    Good except for one thing.

    • 3 meses atrás