1.0.0 • Published 5 years ago

lib-shared-constants v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Shared Constants

This lib allow to share any constants that we need between multiple services or app. For exemple: product codes, action types, pool mode...

Installation

npm:

npm install @iopool/lib-shared-constants

yarn:

yarn add @iopool/lib-shared-constants

Usage

Constant

import { productCode } from "@iopool/lib-shared-constants";

console.log(productCode); // { TabCl200: "TabCl200", TabCl20: "TabCl20", ... }

Flow type

import { productCode } from "@iopool/lib-shared-constants";
import type { ProductCodeType } from "@iopool/lib-shared-constants";

const product: ProductCodeType = productCode.TabCl200;