From 4781aa6a272978e2628d465604c86aa3c9d64ee3 Mon Sep 17 00:00:00 2001 From: Benjamin Rumble Date: Mon, 9 Sep 2024 06:30:10 -0400 Subject: [PATCH] markTasAsDone -> markTaskAsDone (#2270) fix a typo in the docs --- web/docs/data-model/operations/actions.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/web/docs/data-model/operations/actions.md b/web/docs/data-model/operations/actions.md index 8ec0290f44..4e859e3593 100644 --- a/web/docs/data-model/operations/actions.md +++ b/web/docs/data-model/operations/actions.md @@ -272,24 +272,24 @@ Wasp authenticates the logged-in user in the background. ```js -import { createTask, markTasAsDone } from 'wasp/client/operations' +import { createTask, markTaskAsDone } from 'wasp/client/operations' // ... const newTask = await createTask({ description: 'Learn TypeScript' }) -await markTasAsDone({ id: 1 }) +await markTaskAsDone({ id: 1 }) ``` ```ts -import { createTask, markTasAsDone } from 'wasp/client/operations' +import { createTask, markTaskAsDone } from 'wasp/client/operations' // TypeScript automatically infers the return values and type-checks // the payloads. const newTask = await createTask({ description: 'Keep learning TypeScript' }) -await markTasAsDone({ id: 1 }) +await markTaskAsDone({ id: 1 }) ``` Wasp supports **automatic full-stack type safety**. @@ -388,7 +388,7 @@ Here's what you have to do differently: ```js -import { createTask, markTasAsDone } from 'wasp/server/operations' +import { createTask, markTaskAsDone } from 'wasp/server/operations' const user = // Get an AuthUser object, e.g., from context.user @@ -396,14 +396,14 @@ const newTask = await createTask( { description: 'Learn TypeScript' }, { user }, ) -await markTasAsDone({ id: 1 }, { user }) +await markTaskAsDone({ id: 1 }, { user }) ``` ```ts -import { createTask, markTasAsDone } from 'wasp/server/operations' +import { createTask, markTaskAsDone } from 'wasp/server/operations' const user = // Get an AuthUser object, e.g., from context.user @@ -413,7 +413,7 @@ const newTask = await createTask( { description: 'Keep learning TypeScript' }, { user }, ) -await markTasAsDone({ id: 1 }, { user }) +await markTaskAsDone({ id: 1 }, { user }) ```