From 483d6b1a3df2dec8bf6c82ad7ada7260e958a055 Mon Sep 17 00:00:00 2001 From: George Kamtziridis Date: Wed, 1 Sep 2021 09:58:38 +0300 Subject: [PATCH] docs(scully): fix documentation snippet on router plugin type page (#1422) --- docs/Reference/plugins/types/router.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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([