From b06251f4996326bdf487ebbed4838d4423f30972 Mon Sep 17 00:00:00 2001 From: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com> Date: Fri, 4 Aug 2023 20:06:52 +0300 Subject: [PATCH] please work --- docs/guide/walkthrough/services.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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.