From fbdf4f3465167098f4c5891261341c7c56fb912e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Mon, 5 Aug 2024 17:33:39 +0200 Subject: [PATCH] docs: use ts for create-error example (#28411) --- docs/3.api/3.utils/create-error.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/3.api/3.utils/create-error.md b/docs/3.api/3.utils/create-error.md index 6d49a54410..4d12057e49 100644 --- a/docs/3.api/3.utils/create-error.md +++ b/docs/3.api/3.utils/create-error.md @@ -41,7 +41,7 @@ Use `createError` to trigger error handling in server API routes. ### Example -```js +```ts [server/api/error.ts] export default eventHandler(() => { throw createError({ statusCode: 404,