Skip to content

Commit

Permalink
Merge pull request #177 from reconbot/reconbot/jsdoc-types
Browse files Browse the repository at this point in the history
Add typescript types via jsdoc
  • Loading branch information
ryanblock authored Sep 4, 2023
2 parents f1b4602 + 2603b6a commit 944f77e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Hello! After a bit of a hiatus, the [Architect team](https://github.com/architec
- Added `--host` / `options.host` option for specifying a particular host
- Added `--verbose|-v` / `options.verbose`, `--debug|-d` / `options.debug` logging modes, and some additional logging
- Added `-h` help alias for CLI
- Added Typescript Types via JSDOC comments

### Changed

Expand Down
16 changes: 16 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ var validApis = [ 'DynamoDB_20111205', 'DynamoDB_20120810' ],

module.exports = dynalite

/**
* @param {Object} options - The shape is the same as SpecialType above
* @param {boolean} [options.verbose=false] - Enable verbose logging
* @param {boolean} [options.debug=false] - Enable debug logging
* @param {boolean} [options.ssl=false] - Enable SSL for the web server
* @param {string} [options.key] - SSL private key - if omitted and ssl enabled, self-signed cert will be used
* @param {string} [options.cert] - SSL certificate - if omitted and ssl enabled, self-signed cert will be used
* @param {string} [options.ca] - SSL certificate authority - if omitted and ssl enabled, self-signed cert will be used
* @param {number} [options.createTableMs=500] - Amount of time tables stay in CREATING state
* @param {number} [options.deleteTableMs=500] - Amount of time tables stay in DELETING state
* @param {number} [options.updateTableMs=500] - Amount of time tables stay in UPDATING state
* @param {number} [options.maxItemSizeKb=400] - Maximum item size
* @param {string} [options.path] - The path to use for the LevelDB store (in-memory by default)
*
* @returns {http.Server | https.Server} - The Dynalite server
*/
function dynalite (options) {
options = options || {}
if (options.verbose) verbose = true
Expand Down

0 comments on commit 944f77e

Please sign in to comment.