Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

71
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda