easypost-node icon indicating copy to clipboard operation
easypost-node copied to clipboard

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

Open thyming opened this issue 1 year ago • 2 comments

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

thyming avatar Jul 11 '24 20:07 thyming

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.

Justintime50 avatar Jul 11 '24 20:07 Justintime50

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: @.***>

thyming avatar Jul 11 '24 20:07 thyming