Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

79
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!