EasyPost / easypost-node

EasyPost Shipping API Client Library for Node
https://easypost.com/docs/api
MIT License
139 stars 54 forks source link

[Bug]: Typescript types for exports don't have corresponding values #456

Open thyming opened 4 months ago

thyming commented 4 months ago

Software Version

7.3.1

Language Version

20.13.1

Operating System

OSX

What happened?

  1. import { Tracker } from '@easypost/api';
  2. x instanceof Tracker
  3. Uncaught TypeError: Right-hand side of 'instanceof' is not an object

What was expected?

Tracker and i'm sure other types should be exported from the root of the package, excluded from the root level export, or exported only as a type.

Sample Code

No response

Relevant logs

No response

Justintime50 commented 4 months ago

Hey @thyming, thanks for submitting this. We are planning a Typescript rework here shortly that should hopefully address a lot of these issues. I don't yet have a timeframe but it's definitely on our roadmap.

thyming commented 4 months ago

Sounds good, thanks!

On Thu, Jul 11, 2024 at 4:26 PM Justin Hammond @.***> wrote:

Hey @thyming https://github.com/thyming, thanks for submitting this. We are planning a Typescript rework here shortly that should hopefully address a lot of these issues. I don't yet have a timeframe but it's definitely on our roadmap.

— Reply to this email directly, view it on GitHub https://github.com/EasyPost/easypost-node/issues/456#issuecomment-2223863162, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ5N2P2ZWB7Y5L3VLGYGL3ZL3S7VAVCNFSM6AAAAABKXVTH52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRTHA3DGMJWGI . You are receiving this because you were mentioned.Message ID: @.***>