npm.io
0.0.11 • Published 4 years ago

@real-system/utils

Licence
MIT
Version
0.0.11
Deps
5
Size
124 kB
Vulns
0
Weekly
0
Stars
4

@real-system/utils

Real System's series of javascript and typescript helpers.

npm version minified size

Usage

# install peer dependencies

# npm
$ npm install react react-dom
# yarn
$ yarn add react react-dom

# install utils

# npm
$ npm install @real-system/utils
# yarn
$ yarn add @real-system/utils

Code Example

import { ValueOf } from '@real-system/utils';

const obj = {
  keyOne: 'one',
  keyTwo: 'two,
}
type Values = ValueOf<typeof obj>;
// output: type Values = 'one' | 'two';