Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/angular/mfe/movie-ticket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@types/express": "5.0.6",
"@types/node": "20.19.43",
"jsdom": "28.1.0",
"prettier": "3.8.4",
"prettier": "3.9.6",
"typescript": "6.0.3",
"vitest": "4.1.11"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/angular/mfe/movies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@types/express": "5.0.6",
"@types/node": "20.19.43",
"jsdom": "28.1.0",
"prettier": "3.8.4",
"prettier": "3.9.6",
"typescript": "6.0.3",
"vitest": "4.1.11"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/angular/mfe/ticket-availability/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@types/express": "5.0.6",
"@types/node": "20.19.43",
"jsdom": "28.1.0",
"prettier": "3.8.4",
"prettier": "3.9.6",
"typescript": "6.0.3",
"vitest": "4.1.11"
}
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"markdown-it": "14.3.1",
"markdown-it-anchor": "9.2.1",
"pagefind": "1.5.2",
"prettier": "3.8.4",
"prettier": "3.9.6",
"prettier-plugin-astro": "0.14.1",
"react": "19.2.8",
"react-dom": "19.2.8",
Expand Down
5 changes: 1 addition & 4 deletions src/pages/angular/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5241,10 +5241,7 @@ OpenAPI может генерировать DTO/client, но generated layer о

```ts
type RemoteData<T> =
| {status: 'idle'}
| {status: 'loading'}
| {status: 'success'; data: T}
| {status: 'error'; error: string};
{status: 'idle'} | {status: 'loading'} | {status: 'success'; data: T} | {status: 'error'; error: string};
```

Для signal-first чтения подходят `resource()`/`httpResource()`. Для RxJS — stream состояния через `switchMap`, `map`,
Expand Down
10 changes: 2 additions & 8 deletions src/pages/typescript/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2065,10 +2065,7 @@ Union type означает, что значение может принадле

```ts
type RequestState<T> =
| {status: 'idle'}
| {status: 'loading'}
| {status: 'success'; data: T}
| {status: 'error'; error: string};
{status: 'idle'} | {status: 'loading'} | {status: 'success'; data: T} | {status: 'error'; error: string};
```

Перед использованием специфичных свойств union нужно сузить тип через `typeof`, `instanceof`, оператор `in`, проверку
Expand Down Expand Up @@ -2451,10 +2448,7 @@ Intersection `A & B` требует одновременно выполнить

```ts
type LoadState<T> =
| {status: 'idle'}
| {status: 'loading'}
| {status: 'success'; data: T}
| {status: 'error'; error: string};
{status: 'idle'} | {status: 'loading'} | {status: 'success'; data: T} | {status: 'error'; error: string};
```

API DTO отделяют от доменной модели и преобразуют на data-access границе. Inputs типизируют максимально узко:
Expand Down
Loading