Skip to content

Commit 1d73f8c

Browse files
committed
fix: update addTask method parameter type in API server documentation
- Changed the parameter type of the addTask method from TaskForm to Partial<Task> in the API server documentation for improved type flexibility. - Ensured consistency across English, German, and French documentation files.
1 parent 19b4e68 commit 1d73f8c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/content/docs/de/api-server/create-task.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ This new **addTask** function defines the exchange with the API server:
6060
export class TaskService {
6161
private http = inject(HttpClient);
6262

63-
addTask(task: TaskForm) {
63+
addTask(task: Partial<Task>) {
6464
return this.http.post<Task>("http://localhost:3000/tasks", {
6565
...task,
6666
createdAt: new Date(),

src/content/docs/en/api-server/create-task.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ This new **addTask** function defines the exchange with the API server:
6060
export class TaskService {
6161
private http = inject(HttpClient);
6262

63-
addTask(task: TaskForm) {
63+
addTask(task: Partial<Task>) {
6464
return this.http.post<Task>("http://localhost:3000/tasks", {
6565
...task,
6666
createdAt: new Date(),

src/content/docs/fr/api-server/create-task.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ This new **addTask** function defines the exchange with the API server:
6060
export class TaskService {
6161
private http = inject(HttpClient);
6262

63-
addTask(task: TaskForm) {
63+
addTask(task: Partial<Task>) {
6464
return this.http.post<Task>("http://localhost:3000/tasks", {
6565
...task,
6666
createdAt: new Date(),

0 commit comments

Comments
 (0)