Giter VIP home page Giter VIP logo

Comments (4)

CjS77 avatar CjS77 commented on August 15, 2024

Hey @valmassoi

Have you cloned GTT or using the npm package? Because imports are a bit different depending.
If the latter you can still so 100% Javascript route and use whatever import/require format you're comfortable with.
We've also seen some issues depending on the version of tsc, ts-node & node. I'm currently using

ts-node v3.3.0
node v7.10.1
typescript v2.5.2

Also #17 may / may not be helpful.

from coinbase-pro-trading-toolkit.

valmassoi avatar valmassoi commented on August 15, 2024

@CjS77 I'm using it as a npm package. I think it needs the @types published to be used as a package https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html

from coinbase-pro-trading-toolkit.

CjS77 avatar CjS77 commented on August 15, 2024

All the type definitions (*.d.ts) are included in the the npm package, so there's no need to publish the types separately. (@types is for JS-only packages that don't have type information associated with them).

There are 2 definite issues that I've picked up that might be affecting you:

  • A few classes have been accidentally missed in the export sections of the relvant index.ts files. (#59). The workaraound right now is to include the full path to the class
  • The type definitions for some dependencies (e.g. ccxt) are not automatically found when using the npm package even though they are there). A workaround for this right now is to copy the types directory from the package to the root folder of your project. At some point we need to publish @types for those, or better yet, get the .d.ts files added to the source projects.

from coinbase-pro-trading-toolkit.

CjS77 avatar CjS77 commented on August 15, 2024

v0.1.22 fixes this issue, so no need to use the workaround anymore

from coinbase-pro-trading-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.