Skip to content

Commit ca77991

Browse files
committed
fix: update task variable initialization in task-interface documentation
- Changed the initialization of the tasks variable across English, German, and French documentation from `let tasks = [...]` to `tasks = [...]` for consistency with modern JavaScript practices. - Updated TypeScript examples to reflect the same initialization style for clarity and uniformity.
1 parent 5683974 commit ca77991

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/content/docs/de/task-listing/task-interface.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ You will use the **Task** interface to define the type of the tasks variable.
9494
In JavaScript, you would define the tasks variable like this:
9595

9696
```javascript
97-
let tasks = [
97+
tasks = [
9898
{
9999
title: "Task 1",
100100
description: "Description of task 1",
@@ -111,7 +111,7 @@ let tasks = [
111111
To assign a type to a variable in TypeScript, you can use the `:` operator followed by the variable type:
112112

113113
```typescript ins=": Task[]"
114-
let tasks: Task[] = [
114+
tasks: Task[] = [
115115
{
116116
title: "Task 1",
117117
description: "Description of task 1",
@@ -133,7 +133,7 @@ To make a property reactive with Signals, use the `signal` function and pass it
133133
Its type change too: as we want to be able to update the task list, we need to use the `WritableSignal` type.
134134

135135
```typescript ins="WritableSignal<Task[]>" ins="signal(" ins="]);"
136-
let tasks: WritableSignal<Task[]> = signal([
136+
tasks: WritableSignal<Task[]> = signal([
137137
{
138138
title: "Task 1",
139139
description: "Description of task 1",

src/content/docs/en/task-listing/task-interface.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ You will use the **Task** interface to define the type of the tasks variable.
9494
In JavaScript, you would define the tasks variable like this:
9595

9696
```javascript
97-
let tasks = [
97+
tasks = [
9898
{
9999
title: "Task 1",
100100
description: "Description of task 1",
@@ -111,7 +111,7 @@ let tasks = [
111111
To assign a type to a variable in TypeScript, you can use the `:` operator followed by the variable type:
112112

113113
```typescript ins=": Task[]"
114-
let tasks: Task[] = [
114+
tasks: Task[] = [
115115
{
116116
title: "Task 1",
117117
description: "Description of task 1",
@@ -133,7 +133,7 @@ To make a property reactive with Signals, use the `signal` function and pass it
133133
Its type change too: as we want to be able to update the task list, we need to use the `WritableSignal` type.
134134

135135
```typescript ins="WritableSignal<Task[]>" ins="signal(" ins="]);"
136-
let tasks: WritableSignal<Task[]> = signal([
136+
tasks: WritableSignal<Task[]> = signal([
137137
{
138138
title: "Task 1",
139139
description: "Description of task 1",

src/content/docs/fr/task-listing/task-interface.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ You will use the **Task** interface to define the type of the tasks variable.
9494
In JavaScript, you would define the tasks variable like this:
9595

9696
```javascript
97-
let tasks = [
97+
tasks = [
9898
{
9999
title: "Task 1",
100100
description: "Description of task 1",
@@ -111,7 +111,7 @@ let tasks = [
111111
To assign a type to a variable in TypeScript, you can use the `:` operator followed by the variable type:
112112

113113
```typescript ins=": Task[]"
114-
let tasks: Task[] = [
114+
tasks: Task[] = [
115115
{
116116
title: "Task 1",
117117
description: "Description of task 1",
@@ -133,7 +133,7 @@ To make a property reactive with Signals, use the `signal` function and pass it
133133
Its type change too: as we want to be able to update the task list, we need to use the `WritableSignal` type.
134134

135135
```typescript ins="WritableSignal<Task[]>" ins="signal(" ins="]);"
136-
let tasks: WritableSignal<Task[]> = signal([
136+
tasks: WritableSignal<Task[]> = signal([
137137
{
138138
title: "Task 1",
139139
description: "Description of task 1",

0 commit comments

Comments
 (0)