tarlatan
    Preparing search index...

    Function withTemporaryIndex

    • Runs use with the path of a fresh index file, index inside a new directory made in stateDirectory, and removes that directory afterwards however use ends. The file does not exist when use starts; git read-tree creates it. Fails with SnapshotIndexFailed when the directory cannot be made.

      Type Parameters

      • A
      • E
      • R

      Parameters

      • stateDirectory: string
      • use: (indexFile: string) => Effect<A, E, R>

      Returns Effect<A, SnapshotIndexFailed | E, R>