@mavenomics/coreutils
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@mavenomics/coreutils

Common utilites and helpers for all MavenWorks packages.

Some of these are general purpose helpers, like AsyncTools and IterTools.

Type Annotations

MavenWorks includes a 'type annotation' system that feeds into the framework in a few different places, as well as the query engine. They generally live 'alongside' data at runtime, and do not interact with TypeScript in any meaningful way. The framework also makes no guarantees about correctness- a malevolently bent part writer is always allowed to write any value to any option.

This is likely to change down the road, mostly for soundness reasons but also to make the framework more useful with typed data and to improve error messages.

Serialization

The base serializer lives in this package, and can be called using Converters.serialize or Converters.deserialize. If you have an unknown value, you can infer it's type using Converters.inferType, but beware: this function can get very expensive.

Readme

Keywords

none

Package Sidebar

Install

npm i @mavenomics/coreutils

Weekly Downloads

2

Version

0.1.2

License

GPL-3.0

Unpacked Size

102 kB

Total Files

43

Last publish

Collaborators

  • quigleyj-mavenomics
  • yairmarcowmavenomics