mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
docs(all): standardizes and adds return types, also some param fixes
This commit is contained in:
@@ -55,6 +55,7 @@ export class SecureStorage {
|
||||
/**
|
||||
* Creates a namespaced storage.
|
||||
* @param store {string}
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
create(store: string): Promise<any> {
|
||||
return new Promise((res, rej) => {
|
||||
@@ -65,6 +66,7 @@ export class SecureStorage {
|
||||
/**
|
||||
* Gets a stored item
|
||||
* @param reference {string}
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@CordovaInstance({
|
||||
callbackOrder: 'reverse'
|
||||
@@ -75,6 +77,7 @@ export class SecureStorage {
|
||||
* Stores a value
|
||||
* @param reference {string}
|
||||
* @param value {string}
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@CordovaInstance({
|
||||
callbackOrder: 'reverse'
|
||||
@@ -84,6 +87,7 @@ export class SecureStorage {
|
||||
/**
|
||||
* Removes a single stored item
|
||||
* @param reference {string}
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@CordovaInstance({
|
||||
callbackOrder: 'reverse'
|
||||
|
||||
Reference in New Issue
Block a user