Skip to content

Commit 2fd2310

Browse files
authored
chore: updating Action return type (#247)
1 parent b4bfad4 commit 2fd2310

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vesselapi/integrations",
3-
"version": "1.0.36",
3+
"version": "1.0.37",
44
"description": "Vessel integrations",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

src/sdk/types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CamelCasedPropertiesDeep } from 'type-fest';
1+
import { CamelCasedPropertiesDeep, SetOptional } from 'type-fest';
22
import { z } from 'zod';
33
import { HttpOptions } from './client';
44

@@ -291,5 +291,7 @@ export type ClientResult<TValidated> = {
291291
};
292292

293293
export type ActionResult<TOutput> = CamelCasedPropertiesDeep<TOutput> & {
294-
$native?: RawResponse | RawResponse[];
294+
$native?:
295+
| SetOptional<RawResponse, 'body'>
296+
| SetOptional<RawResponse, 'body'>[];
295297
};

0 commit comments

Comments
 (0)