MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeFirst

Function makeFirst

packages/platform/browser/src/IndexedDbQueryBuilder.ts:1876–1885  ·  view source on GitHub ↗
(options: {
  readonly select: IndexedDbQuery.Select<Table, Index>
})

Source from the content-addressed store, hash-verified

1874}
1875
1876const makeFirst = <
1877 Table extends IndexedDbTable.AnyWithProps,
1878 Index extends IndexedDbDatabase.IndexFromTable<Table>
1879>(options: {
1880 readonly select: IndexedDbQuery.Select<Table, Index>
1881}): IndexedDbQuery.First<Table, Index> => {
1882 const self = Object.create(FirstProto)
1883 self.select = options.select
1884 return self as any
1885}
1886
1887const ModifyProto: Omit<
1888 IndexedDbQuery.Modify<any>,

Callers 1

firstFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected