Skip to content

dom-pixel/api-message-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Api-Message

This is Api Message for use in all projects.

Install

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

Quick Start

  const apiMessage = (isSuccess: boolean, code: number, message: string | undefined, payload: any | undefined) =>
  {
    return {
        isSuccess,
        message
        payload,
        code
    };
  }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published