aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/first-time-state.js
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2018-04-19 05:02:08 +0800
committerbitpshr <mail@bitpshr.net>2018-04-19 05:02:08 +0800
commitc9f83fe8bc60a87876242a2dfb5350fceafffca1 (patch)
tree2def53846824b39fde470931cf36ee67a8e4a03b /app/scripts/first-time-state.js
parent7e21fc2aa780ccb4ffb2f642156385db22c47a52 (diff)
downloadtangerine-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.js16
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