Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Fixed upgrade guide
Browse files Browse the repository at this point in the history
  • Loading branch information
ozziest committed Apr 8, 2024
1 parent 7fb16fc commit 91cfde3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/upgrading/v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,15 @@ export default {
You can get more information via [Swagger help files](https://swagger.io/docs/specification/about/).
:::

## Step 8. IContext change
## Step 8. IRequestPack change

The `IContext` interface has been renamed as `IContext`.
The `IRequestPack` interface has been renamed as `IContext`.

```ts
import { IContext } from "axe-api"; // [!code --]
import { IRequestPack } from "axe-api"; // [!code --]
import { IContext } from "axe-api"; // [!code ++]

// [!code --] export default async (params: IContext) => {
// export default async (params: IRequestPack) => {
// [!code ++] export default async (params: IContext) => {
// your hook/event function
};
Expand Down

0 comments on commit 91cfde3

Please sign in to comment.