Skip to content

Commit 0ee06ff

Browse files
authored
chore: fix typos (#1534)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated documentation comments for improved clarity. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent a1bb16f commit 0ee06ff

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/shared/src/interceptor.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type Interceptor<
1616
> = (options: InterceptorOptions<TOptions, TResult>) => TResult
1717

1818
/**
19-
* Can used for interceptors or middlewares
19+
* Can be used for interceptors or middlewares
2020
*/
2121
export function onStart<T, TOptions extends { next(): any }, TRest extends any[]>(
2222
callback: NoInfer<(options: TOptions, ...rest: TRest) => Promisable<void>>,
@@ -28,7 +28,7 @@ export function onStart<T, TOptions extends { next(): any }, TRest extends any[]
2828
}
2929

3030
/**
31-
* Can used for interceptors or middlewares
31+
* Can be used for interceptors or middlewares
3232
*/
3333
export function onSuccess<T, TOptions extends { next(): any }, TRest extends any[]>(
3434
callback: NoInfer<(result: Awaited<ReturnType<TOptions['next']>>, options: TOptions, ...rest: TRest) => Promisable<void>>,
@@ -41,7 +41,7 @@ export function onSuccess<T, TOptions extends { next(): any }, TRest extends any
4141
}
4242

4343
/**
44-
* Can used for interceptors or middlewares
44+
* Can be used for interceptors or middlewares
4545
*/
4646
export function onError<T, TOptions extends { next(): any }, TRest extends any[]>(
4747
callback: NoInfer<(
@@ -66,7 +66,7 @@ export type OnFinishState<TResult, TError>
6666
| [error: null, data: TResult, isSuccess: true]
6767

6868
/**
69-
* Can used for interceptors or middlewares
69+
* Can be used for interceptors or middlewares
7070
*/
7171
export function onFinish<T, TOptions extends { next(): any }, TRest extends any[]>(
7272
callback: NoInfer<(

0 commit comments

Comments
 (0)