blob: 45d3135138424bb5fa99bba78e6c8cec4ef42cbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Changelog — 2026-03-28 #01
## Strict TypeScript Convention Compliance
### `tsconfig.json`
- Added `strict: true` (umbrella flag covering `noImplicitAny`, `noImplicitThis`, `strictNullChecks`, `strictBindCallApply`, `strictFunctionTypes`, `strictPropertyInitialization`, `useUnknownInCatchVariables`, `alwaysStrict`).
- Added `exactOptionalPropertyTypes: true`.
- Added `noFallthroughCasesInSwitch: true`.
- Added `noPropertyAccessFromIndexSignature: true`.
- Added `forceConsistentCasingInFileNames: true`.
- Removed redundant individual flags superseded by `strict: true`.
### `src/main.ts`
- Changed `AIPulseSettings` to `import type` (type-only import).
### `src/ollama-client.ts`
- Replaced explicit `undefined` assignments on optional properties with conditional spread in `parseToolCalls()`.
- Replaced intermediate boolean guards with direct `!== undefined` narrowing in `chatAgentLoop()`.
### `src/chat-view.ts`
- Replaced `condition ? value : undefined` patterns with conditional spreads for `exactOptionalPropertyTypes` compliance in `handleSend()`.
- Removed 6 redundant `as HTMLDivElement` type assertions (already narrowed by null checks).
|