diff --git a/docs/guide/walkthrough/services.md b/docs/guide/walkthrough/services.md index fcb38bbc6..e957f789f 100644 --- a/docs/guide/walkthrough/services.md +++ b/docs/guide/walkthrough/services.md @@ -58,11 +58,11 @@ import TabItem from '@theme/TabItem'; -```ts title="index.ts" showLineNumbers +```ts title="index.ts" await makeDependencies(...pass your options here) ``` -```ts title="commands/ping.ts showLineNumbers +```ts title="commands/ping.ts // This is guaranteed to be defined if configured correctly import { Service } from '@sern/handler'; const client = Service('@sern/client'); @@ -71,14 +71,15 @@ const client = Service('@sern/client'); + + - Services can only be used after sern has made dependencies. - Calling a service before will crash your application.