traph icon indicating copy to clipboard operation
traph copied to clipboard

Transformation graph for JS Objects, a powerful and declarative way to remap one Object in another.

Results 5 traph issues
Sort by recently updated
recently updated
newest added

This adds type definitions to `traph` function. It is possible to have type checking for the object passed to `traph` function by passing two types: the expected input object type...

Great work! Im curious, is it possible: - update settings of object on the fly - use async handlers - update input on the fly Want slightly extended functionality

https://github.com/isaacs/abbrev-js/commit/3798a39c50ef04e51ff3ba0dc8debcaf6dda111f

Or give access as a third argument to mini functions. Use case: ```js const transformEvent = traph({ id: i => i.qid::pipe(Number), timestamp: i => millisToSec(Number(i.starttime)), severity: i => Number(i.magnitude), //...

```js const transform = traph({...}) transform(null) // -> Throws arcane error on proxies ```