Skip to content

Attach original (non proxied) input in DEV mode #2

Description

@caesarsol

Or give access as a third argument to mini functions.

Use case:

const transformEvent = traph({
  id: i => i.qid::pipe(Number),
  timestamp: i => millisToSec(Number(i.starttime)),
  severity: i => Number(i.magnitude),

  // We often need the original data in debug, 
  // but here is passed as Proxy and not very comfortable!
  _original: (i) => i,
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions