0.0.1 • Published 4 years ago

@onaio/utils v0.0.1

Weekly downloads
103
License
Apache-2.0
Repository
github
Last release
4 years ago

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%