fenextjs-interface
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -5,4 +5,5 @@ export interface RequestResultDataProps<R = any, E = any, T = "ok" | "error"> { | ||
error?: E; | ||
message?: string; | ||
} | ||
export type RequestResultProps<R = any, E = any, T = "ok" | "error"> = Promise<RequestResultDataProps<R, E, T>> | RequestResultDataProps<R, E, T>; | ||
export type RequestProps<Q = any, R = any, E = any, T = "ok" | "error"> = (data: Q) => RequestResultProps<R, E, T>; |
@@ -5,4 +5,5 @@ export interface RequestResultDataProps<R = any, E = any, T = "ok" | "error"> { | ||
error?: E; | ||
message?: string; | ||
} | ||
export type RequestResultProps<R = any, E = any, T = "ok" | "error"> = Promise<RequestResultDataProps<R, E, T>> | RequestResultDataProps<R, E, T>; | ||
export type RequestProps<Q = any, R = any, E = any, T = "ok" | "error"> = (data: Q) => RequestResultProps<R, E, T>; |
{ | ||
"name": "fenextjs-interface", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
8035
138