@chemistry/common-functions
TypeScript icon, indicating that this package has built-in type declarations

0.0.18 • Public • Published

@chemistry/common-functions

npm version GitHub Build Status License: MIT

Common Library part of crystallography-api project used to share common interfaces and code across Cloud Functions implementation across the project

Install

npm install @chemistry/common-functions

Interfaces use cases

import {
  CodSyncScheduleInstanceStartPayload,
  PubSubContext,
  extractPayload
  } from '@chemistry/common-functions';
/**
 * Cloud Function that will start COD synronization Instances
 */
export function codSyncStartInstance(
    data: CodSyncScheduleInstanceStartPayload,
    context: PubSubContext
) {
    const payload = extractPayload(event);
  // ...
}

Declarated interfaces:

  • CTopic
  • CTopicPayload

Commands:

  • Build project: npm run build

Package Sidebar

Install

npm i @chemistry/common-functions

Weekly Downloads

0

Version

0.0.18

License

MIT

Unpacked Size

130 kB

Total Files

10

Last publish

Collaborators

  • vreshch