text: (window.webpackJsonp=window.webpackJsonp||[]).push([[17],{364:function(t,e,v){"use strict";v.r(e);var r=v(43),_=Object(r.a)({},(function(){var t=this,e=t.$createElement,v=t._self._c||e;return v("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[v("h1",{attrs:{id:"class-storage"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#class-storage"}},[t._v("#")]),t._v(" Class: Storage")]),t._v(" "),v("p",[t._v("Creates an Everflow Storage object. Adds the ability to load objects and save objects in localstorage(ASYNC)")]),t._v(" "),v("h2",{attrs:{id:"hierarchy"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),v("ul",[v("li",[v("strong",[t._v("Storage")])])]),t._v(" "),v("h2",{attrs:{id:"constructors"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),v("h3",{attrs:{id:"constructor"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),v("p",[t._v("+ "),v("strong",[t._v("new Storage")]),t._v("("),v("code",[t._v("config")]),t._v(": object): "),v("em",[v("RouterLink",{attrs:{to:"/classes/storage.html"}},[t._v("Storage")])],1)]),t._v(" "),v("p",[v("em",[t._v("Defined in "),v("a",{attrs:{href:"https://github.com/AtomHash/everflow/blob/8f06645/everflow/utils/storage.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("everflow/utils/storage.ts:9"),v("OutboundLink")],1)])]),t._v(" "),v("p",[t._v("Initializes Sotage with a storage config object")]),t._v(" "),v("p",[v("strong",[t._v("Parameters:")])]),t._v(" "),v("table",[v("thead",[v("tr",[v("th",[t._v("Name")]),t._v(" "),v("th",[t._v("Type")]),t._v(" "),v("th",[t._v("Description")])])]),t._v(" "),v("tbody",[v("tr",[v("td",[v("code",[t._v("config")])]),t._v(" "),v("td",[t._v("object")]),t._v(" "),v("td",[t._v("everflow storage config")])])])]),t._v(" "),v("p",[v("strong",[t._v("Returns:")]),t._v(" "),v("em",[v("RouterLink",{attrs:{to:"/classes/storage.html"}},[t._v("Storage")])],1)]),t._v(" "),v("h2",{attrs:{id:"methods"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),v("h3",{attrs:{id:"get"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#get"}},[t._v("#")]),t._v(" get")]),t._v(" "),v("p",[t._v("▸ "),v("strong",[t._v("get")]),t._v("("),v("code",[t._v("key")]),t._v(": string, "),v("code",[t._v("callback")]),t._v(": any): "),v("em",[t._v("void")])]),t._v(" "),v("p",[v("em",[t._v("Defined in "),v("a",{attrs:{href:"https://github.com/AtomHash/everflow/blob/8f06645/everflow/utils/storage.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("everflow/utils/storage.ts:50"),v("OutboundLink")],1)])]),t._v(" "),v("p",[t._v("Get a local storage object with key")]),t._v(" "),v("p",[v("strong",[v("code",[t._v("function")])]),t._v(" get")]),t._v(" "),v("p",[v("strong",[t._v("Parameters:")])]),t._v(" "),v("table",[v("thead",[v("tr",[v("th",[t._v("Name")]),t._v(" "),v("th",[t._v("Type")]),t._v(" "),v("th",[t._v("Description")])])]),t._v(" "),v("tbody",[v("tr",[v("td",[v("code",[t._v("key")])]),t._v(" "),v("td",[t._v("string")]),t._v(" "),v("td",[t._v("local storage index-key")])]),t._v(" "),v("tr",[v("td",[v("code",[t._v("callback")])]),t._v(" "),v("td",[t._v("any")]),t._v(" "),v("td",[t._v("callback for when data is loaded")])])])]),t._v(" "),v("p",[v("strong",[t._v("Returns:")]),t._v(" "),v("em",[t._v("void")])]),t._v(" "),v("hr"),t._v(" "),v("h3",{attrs:{id:"remove"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#remove"}},[t._v("#")]),t._v(" remove")]),t._v(" "),v("p",[t._v("▸ "),v("strong",[t._v("remove")]),t._v("("),v("code",[t._v("key")]),t._v(": string, "),v("code",[t._v("callback")]),t._v(": any): "),v("em",[t._v("void")])]),t._v(" "),v("p",[v("em",[t._v("Defined in "),v("a",{attrs:{href:"https://github.com/AtomHash/everflow/blob/8f06645/everflow/utils/storage.ts#L61",target:"_blank",rel:"noopener noreferrer"}},[t._v("everflow/utils/storage.ts:61"),v("OutboundLink")],1)])]),t._v(" "),v("p",[t._v("Get a local storage object with key")]),t._v(" "),v("p",[v("strong",[v("code",[t._v("function")])]),t._v(" remove")]),t._v(" "),v("p",[v("strong",[t._v("Parameters:")])]),t._v(" "),v("table",[v("thead",[v("tr",[v("th",[t._v("Name")]),t._v(" "),v("th",[t._v("Type")]),t._v(" "),v("th",[t._v("Default")]),t._v(" "),v("th",[t._v("Description")])])]),t._v(" "),v("tbody",[v("tr",[v("td",[v("code",[t._v("key")])]),t._v(" "),v("td",[t._v("string")]),t._v(" "),v("td",[t._v("-")]),t._v(" "),v("td",[t._v("local storage index-key")])]),t._v(" "),v("tr",[v("td",[v("code",[t._v("callback")])]),t._v(" "),v("td",[t._v("any")]),t._v(" "),v("td",[t._v("null")]),t._v(" "),v("td",[t._v("callback for when data is removed")])])])]),t._v(" "),v("p",[v("strong",[t._v("Returns:")]),t._v(" "),v("em",[t._v("void")])]),t._v(" "),v("hr"),t._v(" "),v("h3",{attrs:{id:"set"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#set"}},[t._v("#")]),t._v(" set")]),t._v(" "),v("p",[t._v("▸ "),v("strong",[t._v("set")]),t._v("("),v("code",[t._v("key")]),t._v(": string, "),v("code",[t._v("value")]),t._v(": any, "),v("code",[t._v("onSuccess")]),t._v(": CallableFunction | null, "),v("code",[t._v("onFail")]),t._v(": CallableFunction | null): "),v("em",[t._v("void")])]),t._v(" "),v("p",[v("em",[t._v("Defined in "),v("a",{attrs:{href:"https://github.com/AtomHash/everflow/blob/8f06645/everflow/utils/storage.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("everflow/utils/storage.ts:33"),v("OutboundLink")],1)])]),t._v(" "),v("p",[t._v("Set a local storage object with a value")]),t._v(" "),v("p",[v("strong",[v("code",[t._v("function")])]),t._v(" set")]),t._v(" "),v("p",[v("strong",[t._v("Parameters:")])]),t._v(" "),v("table",[v("thead",[v("tr",[v("th",[t._v("Name")]),t._v(" "),v("th",[t._v("Type")]),t._v(" "),v("th",[t._v("Description")])])]),t._v(" "),v("tbody",[v("tr",[v("td",[v("code",[t._v("key")])]),t._v(" "),v("td",[t._v("string")]),t._v(" "),v("td",[t._v("local storage index-key")])]),t._v(" "),v("tr",[v("td",[v("code",[t._v("value")])]),t._v(" "),v("td",[t._v("any")]),t._v(" "),v("td",[t._v("value to save")])]),t._v(" "),v("tr",[v("td",[v("code",[t._v("onSuccess")])]),t._v(" "),v("td",[t._v("CallableFunction | null")]),t._v(" "),v("td",[t._v("-")])]),t._v(" "),v("tr",[v("td",[v("code",[t._v("onFail")])]),t._v(" "),v("td",[t._v("CallableFunction | null")]),t._v(" "),v("td",[t._v("-")])])])]),t._v(" "),v("p",[v("strong",[t._v("Returns:")]),t._v(" "),v("em",[t._v("void")])])])}),[],!1,null,null,null);e.default=_.exports}}]);