WebAPI/DataStore: Difference between revisions

Jump to navigation Jump to search
Line 101: Line 101:
     // Promise<unsigned long>
     // Promise<unsigned long>
     Promise getLength();
     Promise getLength();
   
    DataStoreCursor sync(optional DOMString revisionId = "");
  };
 
  interface DataStoreCursor {
 
    // the DataStore
    readonly attribute DataStore store;
 
    // Promise<DataStoreTask>
    Promise next();
 
    void close();
  };
 
  enum DataStoreOperation {
    "add",
    "update",
    "remove",
    "clear",
    "done"
  };
 
  dictionary DataStoreTask {
    DOMString revisionId; 
 
    IDBCursorDirection operation;
    unsigned long id;
    any data;
   };
   };
    
    
Confirmed users
53

edits

Navigation menu