Skip to content

Commit 5683974

Browse files
committed
fix: remove unused TaskForm import in API server documentation
- Updated the API server documentation across English, German, and French versions to remove the unused import of TaskForm from task.model. - Ensured consistency in the code examples by only importing the necessary Task model.
1 parent a390b02 commit 5683974

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
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
@@ -52,7 +52,7 @@ This new **addTask** function defines the exchange with the API server:
5252
```typescript ins={"Replace the addTask function": 10-16}
5353
import { Injectable, inject } from "@angular/core";
5454
import { HttpClient } from "@angular/common/http";
55-
import { Task, TaskForm } from "./task.model";
55+
import { Task } from "./task.model";
5656

5757
@Injectable({
5858
providedIn: "root",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ deleteTask(id: string) {
3737
```typescript ins={"Add the deleteTask function": 10-16}
3838
import { Injectable, inject } from "@angular/core";
3939
import { HttpClient } from "@angular/common/http";
40-
import { Task, TaskForm } from "./task.model";
40+
import { Task } from "./task.model";
4141

4242
@Injectable({
4343
providedIn: "root",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ updateTask(task: Partial<Task>, id: string) {
5050
```typescript ins={"Replace the getTask function": 10-13} ins={"Replace the updateTask function": 14-17}
5151
import { Injectable, inject } from "@angular/core";
5252
import { HttpClient } from "@angular/common/http";
53-
import { Task, TaskForm } from "./task.model";
53+
import { Task } from "./task.model";
5454

5555
@Injectable({
5656
providedIn: "root",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ This new **addTask** function defines the exchange with the API server:
5252
```typescript ins={"Replace the addTask function": 10-16}
5353
import { Injectable, inject } from "@angular/core";
5454
import { HttpClient } from "@angular/common/http";
55-
import { Task, TaskForm } from "./task.model";
55+
import { Task } from "./task.model";
5656

5757
@Injectable({
5858
providedIn: "root",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ deleteTask(id: string) {
3737
```typescript ins={"Add the deleteTask function": 10-16}
3838
import { Injectable, inject } from "@angular/core";
3939
import { HttpClient } from "@angular/common/http";
40-
import { Task, TaskForm } from "./task.model";
40+
import { Task } from "./task.model";
4141

4242
@Injectable({
4343
providedIn: "root",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ updateTask(task: Partial<Task>, id: string) {
5050
```typescript ins={"Replace the getTask function": 10-13} ins={"Replace the updateTask function": 14-17}
5151
import { Injectable, inject } from "@angular/core";
5252
import { HttpClient } from "@angular/common/http";
53-
import { Task, TaskForm } from "./task.model";
53+
import { Task } from "./task.model";
5454

5555
@Injectable({
5656
providedIn: "root",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ This new **addTask** function defines the exchange with the API server:
5252
```typescript ins={"Replace the addTask function": 10-16}
5353
import { Injectable, inject } from "@angular/core";
5454
import { HttpClient } from "@angular/common/http";
55-
import { Task, TaskForm } from "./task.model";
55+
import { Task } from "./task.model";
5656

5757
@Injectable({
5858
providedIn: "root",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ deleteTask(id: string) {
3737
```typescript ins={"Add the deleteTask function": 10-16}
3838
import { Injectable, inject } from "@angular/core";
3939
import { HttpClient } from "@angular/common/http";
40-
import { Task, TaskForm } from "./task.model";
40+
import { Task } from "./task.model";
4141

4242
@Injectable({
4343
providedIn: "root",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ updateTask(task: Partial<Task>, id: string) {
5050
```typescript ins={"Replace the getTask function": 10-13} ins={"Replace the updateTask function": 14-17}
5151
import { Injectable, inject } from "@angular/core";
5252
import { HttpClient } from "@angular/common/http";
53-
import { Task, TaskForm } from "./task.model";
53+
import { Task } from "./task.model";
5454

5555
@Injectable({
5656
providedIn: "root",

0 commit comments

Comments
 (0)