(input: {
readonly owner: "org" | "user";
readonly collection: string;
readonly key: string;
readonly data: object;
})
| 32 | const rowKey = (owner: string, collection: string, key: string) => |
| 33 | `${owner}:${collection}:${key}`; |
| 34 | const put = (input: { |
| 35 | readonly owner: "org" | "user"; |
| 36 | readonly collection: string; |
| 37 | readonly key: string; |
| 38 | readonly data: object; |
| 39 | }) => |
| 40 | Effect.sync(() => { |
| 41 | const next = entry({ |
| 42 | owner: input.owner, |
| 43 | collection: input.collection, |
| 44 | key: input.key, |
| 45 | data: input.data, |
| 46 | }); |
| 47 | rows.set(rowKey(input.owner, input.collection, input.key), next); |
| 48 | return next; |
| 49 | }); |
| 50 | return { |
| 51 | collection: <const TDefinition extends PluginStorageCollectionDefinition>( |
| 52 | definition: TDefinition, |
no test coverage detected