diff options
author | bitpshr <mail@bitpshr.net> | 2018-04-19 05:02:08 +0800 |
---|---|---|
committer | bitpshr <mail@bitpshr.net> | 2018-04-19 05:02:08 +0800 |
commit | c9f83fe8bc60a87876242a2dfb5350fceafffca1 (patch) | |
tree | 2def53846824b39fde470931cf36ee67a8e4a03b /app/scripts/first-time-state.js | |
parent | 7e21fc2aa780ccb4ffb2f642156385db22c47a52 (diff) | |
download | tangerine-wallet-browser-c9f83fe8bc60a87876242a2dfb5350fceafffca1.tar.gz tangerine-wallet-browser-c9f83fe8bc60a87876242a2dfb5350fceafffca1.tar.zst tangerine-wallet-browser-c9f83fe8bc60a87876242a2dfb5350fceafffca1.zip |
Add JSDoc to various background scripts
Diffstat (limited to 'app/scripts/first-time-state.js')
-rw-r--r-- | app/scripts/first-time-state.js | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/app/scripts/first-time-state.js b/app/scripts/first-time-state.js index 3063df627..0c8f35303 100644 --- a/app/scripts/first-time-state.js +++ b/app/scripts/first-time-state.js @@ -2,10 +2,16 @@ const env = process.env.METAMASK_ENV const METAMASK_DEBUG = process.env.METAMASK_DEBUG -// -// The default state of MetaMask -// -module.exports = { +/** + * @typedef {Object} FirstTimeState + * @property {Object} config Initial configuration parameters + * @property {Object} NetworkController Network controller state + */ + +/** + * @type {FirstTimeState} The default state of MetaMask + */ +const initialState = { config: {}, NetworkController: { provider: { @@ -13,3 +19,5 @@ module.exports = { }, }, } + +module.exports = initialState |