@onaio/utils
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Ona Utils

This package is a collection of useful utilities.

What is included

Utility Type Definitions

  • Dictionary: an interface that can describe any object
  • UpdateType: a generic type used to merge one object interface with another
  • Result: a generic type that is meant to describe the result of any function, with in-built error handling.

Utility Functions

  • percentage: a small little function that converts a decimal into a percentage e.g. 0.18 into 18%

Readme

Keywords

none

Package Sidebar

Install

npm i @onaio/utils

Weekly Downloads

111

Version

0.0.1

License

Apache-2.0

Unpacked Size

16.2 kB

Total Files

10

Last publish

Collaborators

  • onaio