type Response
Type defining a remote call response structure
Definition
type Response = {
type: 'success';
value: any;
} | {
type: 'fail';
error: any;
};
type ResponseType defining a remote call response structure
type Response = {
type: 'success';
value: any;
} | {
type: 'fail';
error: any;
};