diff --git a/docs/Reference/plugins/types/router.md b/docs/Reference/plugins/types/router.md index a136de5e1..9582b5c00 100644 --- a/docs/Reference/plugins/types/router.md +++ b/docs/Reference/plugins/types/router.md @@ -29,8 +29,8 @@ A **`router` plugin** is used to convert the raw route-config into a list of rou Lets implement a **`router` plugin** that turns the raw route into five distinct `HandledRoutes` from an application containing the following route: `/user/:userId`. -```javascript -const { registerPlugin } = require('@scullyio/scully'); +```typescript +import { HandledRoute, registerPlugin } from "@scullyio/scully" function userIdPlugin(route: string, config = {}): Promise { return Promise.resolve([