fenextjs-interface
Advanced tools
Comparing version 1.0.6 to 1.0.7
import { ErrorProps } from "@/Error"; | ||
export interface RequestResultDataProps<R = any, E = any, T = "ok" | "error"> { | ||
export type RequestResultTypeProps = "ok" | "error"; | ||
export interface RequestResultDataProps<R = any, E = any, T = RequestResultTypeProps> { | ||
type: T; | ||
@@ -8,3 +9,3 @@ result?: R; | ||
} | ||
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>; | ||
export type RequestResultProps<R = any, E = any, T = RequestResultTypeProps> = Promise<RequestResultDataProps<R, E, T>> | RequestResultDataProps<R, E, T>; | ||
export type RequestProps<Q = any, R = any, E = any, T = RequestResultTypeProps> = (data: Q) => RequestResultProps<R, E, T>; |
import { ErrorProps } from "@/Error"; | ||
export interface RequestResultDataProps<R = any, E = any, T = "ok" | "error"> { | ||
export type RequestResultTypeProps = "ok" | "error"; | ||
export interface RequestResultDataProps<R = any, E = any, T = RequestResultTypeProps> { | ||
type: T; | ||
@@ -8,3 +9,3 @@ result?: R; | ||
} | ||
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>; | ||
export type RequestResultProps<R = any, E = any, T = RequestResultTypeProps> = Promise<RequestResultDataProps<R, E, T>> | RequestResultDataProps<R, E, T>; | ||
export type RequestProps<Q = any, R = any, E = any, T = RequestResultTypeProps> = (data: Q) => RequestResultProps<R, E, T>; |
{ | ||
"name": "fenextjs-interface", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
9944
177