Comments (4)
Thanks for fixing that, and so quickly! All working from outside now too :)
from duffel-api-javascript.
Hi, could you tell me a bit more about your project set up, and how you're importing and initialising the library? I currently don't get the same error when I try to build a few of our projects. For now I'm upgrading our TS versions here in case that will help: https://github.com/duffelhq/duffel-api-java%E2%89%88script/pull/798
from duffel-api-javascript.
Hi @andrejak, I tried initialising a new Typescript + NodeJS project (npm version 9.8.1, Typescript 5.2.2, NodeJS 18.18.1), where I also managed to replicate the problem. Here's a link to a repo where you should be able to replicate the issue too https://github.com/BakerSmithA/duffel_type_error
Just to note, I found that I could fix the type errors using "skipLibCheck": true
in the tsconfig.json
(although it's obviously preferable to disable this flag).
If there's something else wrong with the setup here that you can see, then that would be great! Thanks!
from duffel-api-javascript.
Thank you for creating the sample repo, that was very helpful. I think I've fixed the issues and I am able to build your example with no errors using the new 2.5.6 version. I'm going to close this for now, but if you still see problem feel free to re-open and tag me :)
from duffel-api-javascript.
Related Issues (20)
- CardPayment Component HOT 9
- suggestions function not working HOT 11
- slack test issue
- Suggestion: Get flight fare rules using fare basis code HOT 2
- Rate Limiting HOT 4
- Create Duffel App HOT 1
- `max_connections` is missing from type `CreateOfferRequest` HOT 1
- Should `OfferRequestSlice` `origin` and `destination` be type `Place`? HOT 2
- `OfferPassenger`` type` should be `DuffelPassengerType` not `string` HOT 1
- Missing key in OfferSliceSegment type HOT 2
- return_offers question HOT 2
- Undefined booking response, no errors returned HOT 18
- Selected service ID is not the valid one when reaching orders.create() HOT 3
- Reporting a vulnerability HOT 1
- Typescript Types are not aligned with API docs HOT 2
- Version 2.5.2 : Cannot find module 'Client' or its corresponding type declarations HOT 3
- Type mismatch between documentation and Typescript types HOT 2
- import{URL as s,URLSearchParams as e}from"url" HOT 3
- Issue getting x-request-id
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duffel-api-javascript.