fusionauth-typescript-client icon indicating copy to clipboard operation
fusionauth-typescript-client copied to clipboard

ClientResponse seems to be exported incorrectly

Open adriano-di-giovanni opened this issue 5 years ago • 1 comments

It seems to be not possible to

import { ClientResponse } from '@fusionauth/typescript-client;

The only way seems to be

import ClientResponse from '@fusionauth/typescript-client/build/src/ClientResponse';

adriano-di-giovanni avatar Jun 12 '20 08:06 adriano-di-giovanni

This looks like it is due to the fact this object is exported as default class rather than class.

https://github.com/FusionAuth/fusionauth-typescript-client/blob/master/src/ClientResponse.ts

https://stackoverflow.com/questions/33305954/typescript-export-vs-default-export

mooreds avatar Feb 16 '22 18:02 mooreds