@socketsecurity/sdk
Advanced tools
Comparing version 0.5.3 to 0.5.4
@@ -0,1 +1,2 @@ | ||
export type SocketSdkOperations = keyof import('./types/api').operations; | ||
export type SocketSdkReturnType<T extends keyof import("./types/api").operations> = import('./types/api-helpers').OpReturnType<import('./types/api').operations[T]>; | ||
@@ -2,0 +3,0 @@ export type SocketSdkErrorType<T extends keyof import("./types/api").operations> = import('./types/api-helpers').OpErrorType<import('./types/api').operations[T]>; |
@@ -9,4 +9,6 @@ 'use strict' | ||
/** @typedef {keyof import('./types/api').operations} SocketSdkOperations */ | ||
/** | ||
* @template {keyof import('./types/api').operations} T | ||
* @template {SocketSdkOperations} T | ||
* @typedef {import('./types/api-helpers').OpReturnType<import('./types/api').operations[T]>} SocketSdkReturnType | ||
@@ -16,3 +18,3 @@ */ | ||
/** | ||
* @template {keyof import('./types/api').operations} T | ||
* @template {SocketSdkOperations} T | ||
* @typedef {import('./types/api-helpers').OpErrorType<import('./types/api').operations[T]>} SocketSdkErrorType | ||
@@ -22,3 +24,3 @@ */ | ||
/** | ||
* @template {keyof import('./types/api').operations} T | ||
* @template {SocketSdkOperations} T | ||
* @typedef {SocketSdkReturnType<T> | SocketSdkErrorType<T>} SocketSdkResultType | ||
@@ -25,0 +27,0 @@ */ |
{ | ||
"name": "@socketsecurity/sdk", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "SDK for the Socket API client", |
Sorry, the diff of this file is not supported yet
76854
2363