xtuc/unmarshaller-extra

Create a Babel plugin to preprocess the configuration

Aperta

#1 aperta il 24 mag 2017

 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (0 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (0 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Example:

const unmarshaller = {
  foo: builder.string('foo')
};

const config = unmarshal(lookupFn, unmarshaller)

Given the input {foo: 'bar'}, would become:

const unmarshaller = {
  foo: builder.string('foo')
};

const config = {
  foo: 'bar'
}

Guida contributor