@litehex/node-vault
Advanced tools
Comparing version 0.1.0-alpha.5 to 0.1.0-alpha.6
@@ -16,3 +16,3 @@ import { RequestInit as RequestInit$1 } from 'undici'; | ||
} | ||
type ValidatedResponse<T extends RequestSchema> = T['response'] extends z.ZodRecord<any> ? Record<string, unknown> : T['response'] extends z.ZodObject<any> ? z.infer<T['response']> : unknown; | ||
type ValidatedResponse<T extends RequestSchema> = T['response'] extends z.ZodRecord<any> ? Record<string, Serializable> : T['response'] extends z.ZodObject<any> ? z.infer<T['response']> : unknown; | ||
type CommandArgs<Schema extends RequestSchema> = (Schema['searchParams'] extends z.ZodObject<any> ? z.infer<Schema['searchParams']> : {}) & (Schema['body'] extends z.ZodAny ? Record<string, Serializable> : Schema['body'] extends z.ZodObject<any> ? z.infer<Schema['body']> : {}) & (Schema['path'] extends z.ZodObject<any> ? z.infer<Schema['path']> : {}); | ||
@@ -19,0 +19,0 @@ type CommandFn<Schema extends RequestSchema> = (args?: CommandArgs<Schema>, options?: Omit<RequestInit, 'url'>) => Promise<ValidatedResponse<Schema>>; |
{ | ||
"name": "@litehex/node-vault", | ||
"version": "0.1.0-alpha.5", | ||
"version": "0.1.0-alpha.6", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Node.js client for the HashiCorp's Vault API", |
Sorry, the diff of this file is not supported yet
61333