Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

76
Vistas
How to setup oddslib js library

I am trying to use this odds lib library I have found with this link:

https://github.com/1player/oddslib

However, I notice when I import it, I get a warning.

Did I setup the oddslib correctly? I did do an npm install oddslib

The reason I ask is because when I hover over that import (import * as oddslib from "oddslib";), it states:

module "c:xxx/Desktop/cypress-cucumber/node_modules/oddslib/dist/oddslib.cjs"
Could not find a declaration file for module 'oddslib'. 'c:/xxx/Desktop/cypress-cucumber/node_modules/oddslib/dist/oddslib.cjs.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/oddslib` if it exists or add a new declaration (.d.ts) file containing `declare module 'oddslib';`
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

It Seems like you are using Typescript with an unsupported library which does not directly support Typescript nor has a separate type declaration package.

However it does not mean that you can't use it! You can use it but without any typing feature that Typescript brings.

You can ignore it or write declarations yourself.

Also you might want to install package with --save option to add them automatically to your package.json file:

npm install --save oddslib
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda