@real-system/utils
Real System's series of javascript and typescript helpers.
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';