-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: delete duplicates in cleeng type
- Loading branch information
1 parent
459cb9e
commit 5111e48
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
interface ApiResponse { | ||
errors: string[]; | ||
} | ||
type ServiceResponse<R> = { responseData: R } & ApiResponse; | ||
type ServiceRequest<P, R> = (payload: P) => Promise<ServiceResponse<R>>; | ||
type CleengEmptyRequest<R> = (sandbox: boolean) => Promise<ServiceResponse<R>>; | ||
type CleengEmptyAuthRequest<R> = (sandbox: boolean, jwt: string) => Promise<ServiceResponse<R>>; | ||
type CleengRequest<P, R> = (payload: P, sandbox: boolean) => Promise<ServiceResponse<R>>; | ||
type CleengAuthRequest<P, R> = (payload: P, sandbox: boolean, jwt: string) => Promise<ServiceResponse<R>>; | ||
type EmptyServiceRequest<R> = (sandbox: boolean) => Promise<ServiceResponse<R>>; | ||
type CleengResponse<R> = { responseData: R } & ApiResponse; | ||
type CleengEmptyRequest<R> = (sandbox: boolean) => Promise<CleengResponse<R>>; | ||
type CleengEmptyAuthRequest<R> = (sandbox: boolean, jwt: string) => Promise<CleengResponse<R>>; | ||
type CleengRequest<P, R> = (payload: P, sandbox: boolean) => Promise<CleengResponse<R>>; | ||
type CleengAuthRequest<P, R> = (payload: P, sandbox: boolean, jwt: string) => Promise<CleengResponse<R>>; |