This is Api Message for use in all projects.
You can add this library as a local, per-project dependency to your project using Npm or Yarn:
Using npm
$ npm install @dom-pixel/api-message
Or Yarn
$ yarn add @dom-pixel/api-message
const apiMessage = (isSuccess: boolean, code: number, message: string | undefined, payload: any | undefined) =>
{
return {
isSuccess,
message
payload,
code
};
}