| 1910 | } |
| 1911 | |
| 1912 | const makeModify = <Table extends IndexedDbTable.AnyWithProps>(options: { |
| 1913 | readonly from: IndexedDbQuery.From<Table> |
| 1914 | readonly value: IndexedDbTable.TableSchema<Table>["Type"] |
| 1915 | readonly operation: "add" | "put" |
| 1916 | }): IndexedDbQuery.Modify<Table> => { |
| 1917 | const self = Object.create(ModifyProto) |
| 1918 | self.from = options.from |
| 1919 | self.value = options.value |
| 1920 | self.operation = options.operation |
| 1921 | return self as any |
| 1922 | } |
| 1923 | |
| 1924 | const ModifyAllProto: Omit< |
| 1925 | IndexedDbQuery.ModifyAll<any>, |