From b73ae466ddd7b0ee5896fce8a177bae6901c66a5 Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Tue, 3 Dec 2024 13:44:16 +0100 Subject: [PATCH] fix: export `validateApiPerspective` --- src/config.ts | 3 +++ src/defineCreateClient.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/src/config.ts b/src/config.ts index dcf6c4a4..8a75a129 100644 --- a/src/config.ts +++ b/src/config.ts @@ -28,6 +28,9 @@ function validateApiVersion(apiVersion: string) { } } +/** + * @internal - it may have breaking changes in any release + */ export const validateApiPerspective = function validateApiPerspective(perspective: unknown) { if (Array.isArray(perspective)) { for (const perspectiveValue of perspective) { diff --git a/src/defineCreateClient.ts b/src/defineCreateClient.ts index 7a604e4e..ff053e38 100644 --- a/src/defineCreateClient.ts +++ b/src/defineCreateClient.ts @@ -3,6 +3,7 @@ import type {Middlewares} from 'get-it' import {defineHttpRequest} from './http/request' import type {Any, ClientConfig, HttpRequest} from './types' +export {validateApiPerspective} from './config' export * from './data/patch' export * from './data/transaction' export {ClientError, CorsOriginError, ServerError} from './http/errors'