Skip to content

Commit

Permalink
chore(moduleExec): more inline docs: executive summary at top (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Feb 5, 2021
1 parent c63675b commit 0d619f7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/lib/moduleExec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* moduleExec(options: ModuleExecOptions)
*
* 1. Query Stage
* 1. Validate user-supplied module params, e.g. { period: '1d' }
* 2. Merge query params: (module defaults, user-supplied overrides, etc)
* 3. Optionally transform query params
*
* 2. Call lib/yahooFinanceFetch
*
* 3. Result Stage
* 1. Optional transform the result
* 2. Validate the result and coerce types
*
* Further info below, inline.
*/

import validateAndCoerceTypes from './validateAndCoerceTypes';
import csv2json from './csv2json';

Expand Down

0 comments on commit 0d619f7

Please sign in to comment.