Package breakdown. Commit v1.0.0 of services-common stuff
This commit is contained in:
7
lib/types/ApiResponse.ts
Normal file
7
lib/types/ApiResponse.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Payload } from './Payload';
|
||||
|
||||
export interface ApiResponse<T = Payload> {
|
||||
data?: T;
|
||||
error?: Error | string | number;
|
||||
success: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user