Skip to content

Commit

Permalink
fix: export validateApiPerspective
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Dec 3, 2024
1 parent 59bd477 commit b73ae46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions src/defineCreateClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b73ae46

Please sign in to comment.