From 99476733a22b7e609a9b02988319e3c67c7b9ff2 Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Thu, 10 Aug 2023 12:54:27 +0700 Subject: [PATCH] fix: default condition should be last one --- package.json | 4 ++-- src/types.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e0d9bad..ef54bcb 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,8 @@ ], "exports": { "require": "./dist/index.cjs", - "default": "./dist/index.modern.js", - "types": "./dist/index.d.ts" + "types": "./dist/index.d.ts", + "default": "./dist/index.modern.js" }, "scripts": { "prebuild": "yarn run clean", diff --git a/src/types.ts b/src/types.ts index 7a9cce2..b9f9783 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,4 +1,5 @@ import { AlbyResponseError } from "./AlbyResponseError"; +import { RequestOptions } from "./request"; export type SuccessStatus = 200 | 201; export type ResponseType = "application/json"; @@ -245,4 +246,4 @@ export type GetAccountInformationResponse = { nostr_pubkey?: string; }; -export { AlbyResponseError }; +export { AlbyResponseError, RequestOptions };