Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33307371
D8618.1768797618.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
562 B
Referenced Files
None
Subscribers
None
D8618.1768797618.diff
View Options
diff --git a/lib/ops/base-ops.js b/lib/ops/base-ops.js
new file mode 100644
--- /dev/null
+++ b/lib/ops/base-ops.js
@@ -0,0 +1,18 @@
+// @flow
+
+export type BaseStoreOpsHandlers<
+ Store,
+ Operation,
+ ClientDBOperation,
+ DataType,
+ ClientDBDataType,
+> = {
+ processStoreOperations: (
+ store: Store,
+ ops: $ReadOnlyArray<Operation>,
+ ) => Store,
+ convertOpsToClientDBOps: (
+ ops: $ReadOnlyArray<Operation>,
+ ) => $ReadOnlyArray<ClientDBOperation>,
+ translateClientDBData: (data: $ReadOnlyArray<ClientDBDataType>) => DataType,
+};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 4:40 AM (18 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5954396
Default Alt Text
D8618.1768797618.diff (562 B)
Attached To
Mode
D8618: [lib] introduce generic StoreOperation type
Attached
Detach File
Event Timeline
Log In to Comment