@nexys/lib
TypeScript icon, indicating that this package has built-in type declarations

2.12.1 • Public • Published

SDK for Nexys-System

Referred to as product service in the document

npm version npm version CI Bundlephobia Code style

Get started

Init

Create a file to instantiate the product service, product-service.ts

import NexysLib from '@nexys/lib';

export default NexysLib({
  authToken: 'myapptoken'
});

CRUD operations

import P from '../product-service';
import { Query } from '@nexys/lib';
import * as CT from '../crud/type'; // this is the export of all CRUD types

/**
 * list of users
 */
export const list = async (): Promise<CT.User[]> => await P.ProductQuery.list('User');

Readme

Keywords

none

Package Sidebar

Install

npm i @nexys/lib

Weekly Downloads

1

Version

2.12.1

License

MIT

Unpacked Size

121 kB

Total Files

127

Last publish

Collaborators

  • fab.nexys
  • nexys