@@ -35,7 +35,7 @@ type EntryHandle<T> =
3535 * - `writeFile`: a file write operation
3636 * - `stat`: a stat (file/directory metadata) operation
3737 */
38- type Operation = 'writeFile' | 'stat'
38+ export type Operation = 'writeFile' | 'stat'
3939
4040/**
4141 * Callback invoked before each retry attempt.
@@ -44,20 +44,20 @@ type Operation = 'writeFile' | 'stat'
4444 * @param error - the error that triggered the retry
4545 * @param path - optional filesystem path related to the operation
4646 */
47- type RetryCallback = ( operation : Operation , attempt : number , error : Error , path ?: string ) => void
47+ export type RetryCallback = ( operation : Operation , attempt : number , error : Error , path ?: string ) => void
4848
4949/**
5050 * Callback invoked when a non-retriable error occurs or retries are exhausted.
5151 * @param operation - the operation that failed
5252 * @param error - the encountered error
5353 * @param path - optional filesystem path related to the operation
5454 */
55- type ErrorCallback = ( operation : Operation , error : unknown , path ?: string ) => void
55+ export type ErrorCallback = ( operation : Operation , error : unknown , path ?: string ) => void
5656
5757/**
5858 * Configuration options for the `FileSystemAccessApiFsClient`.
5959 */
60- type FileSystemAccessApiClientOptions = {
60+ export type FileSystemAccessApiClientOptions = {
6161 /**
6262 * If true, use the synchronous access handle API (OPFS) for writes when
6363 * available. This can improve write performance in supporting browsers.
0 commit comments