(opts: Init)
| 116 | } |
| 117 | |
| 118 | export function create(opts: Init): Result<Picker> { |
| 119 | const made = FileFinder.create(opts) |
| 120 | if (!made.ok) return made |
| 121 | const pick = made.value |
| 122 | return { |
| 123 | ok: true, |
| 124 | value: { |
| 125 | destroy: () => pick.destroy(), |
| 126 | isScanning: () => pick.isScanning(), |
| 127 | waitForScan: (timeoutMs) => pick.waitForScan(timeoutMs), |
| 128 | refreshGitStatus: () => pick.refreshGitStatus(), |
| 129 | fileSearch: (query, next) => pick.fileSearch(query, next), |
| 130 | glob: (pattern, next) => pick.glob(pattern, next), |
| 131 | directorySearch: (query, next) => pick.directorySearch(query, next), |
| 132 | mixedSearch: (query, next) => pick.mixedSearch(query, next), |
| 133 | grep: (query, next) => pick.grep(query, next), |
| 134 | trackQuery: (query, file) => pick.trackQuery(query, file), |
| 135 | getHistoricalQuery: (offset) => pick.getHistoricalQuery(offset), |
| 136 | }, |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | export * as Fff from "./fff.bun" |
nothing calls this directly
no test coverage detected