Skip to content

Commit 38905d8

Browse files
authored
chore: export helper isJSONObject (#27)
1 parent 37d309b commit 38905d8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

packages/clients/src/helpers/json.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ export const isJSON = (obj: unknown): obj is JSON => {
2222
)
2323
}
2424

25+
/**
26+
* Validates an unknown object is a JSON Object.
27+
*
28+
* @internal
29+
*/
2530
export const isJSONObject = (obj: unknown): obj is JSONObject => {
2631
const objT: string = typeof obj
2732

packages/clients/src/internals.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
export { API } from './scw/api'
1+
export { isJSONObject } from './helpers/json'
22
export { waitForResource } from './internal/async/interval-retrier'
3-
export { authenticateWithSessionToken } from './scw/auth'
43
export type { RequestInterceptor } from './internal/interceptors/request'
54
export type { ResponseInterceptor } from './internal/interceptors/response'
5+
export { API } from './scw/api'
6+
export { authenticateWithSessionToken } from './scw/auth'
67
export type { DefaultValues } from './scw/client-ini-profile'
7-
export type { ServiceInfo } from './scw/custom-types'
88
export {
99
marshalScwFile,
1010
marshalMoney,
@@ -15,6 +15,7 @@ export {
1515
unmarshalTimeSeries,
1616
unmarshalTimeSeriesPoint,
1717
} from './scw/custom-marshalling'
18+
export type { ServiceInfo } from './scw/custom-types'
1819
export {
1920
resolveOneOf,
2021
unmarshalDate,

0 commit comments

Comments
 (0)