From 93bb94a121f1a58bb57c9112057fbf339a9386b5 Mon Sep 17 00:00:00 2001 From: Till JS Date: Tue, 14 Apr 2026 20:07:22 +0200 Subject: [PATCH] fix(types): drop .ts extensions + narrow Uint8Array buffer type - shared-types/index.ts: drop .ts import extensions (web-app tsconfig has no allowImportingTsExtensions; bundler resolution handles it) - backup/format.test.ts: narrow buildZip return to Uint8Array so the Blob() constructor accepts it under strict lib.dom Co-Authored-By: Claude Opus 4.6 (1M context) --- .../apps/web/src/lib/data/backup/format.test.ts | 2 +- packages/shared-types/src/index.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/mana/apps/web/src/lib/data/backup/format.test.ts b/apps/mana/apps/web/src/lib/data/backup/format.test.ts index 82b61f733..8961d3cca 100644 --- a/apps/mana/apps/web/src/lib/data/backup/format.test.ts +++ b/apps/mana/apps/web/src/lib/data/backup/format.test.ts @@ -29,7 +29,7 @@ interface EntrySpec { * the parser does not verify it (sha256 on the uncompressed content plays * that role at a higher level). */ -function buildZip(entries: EntrySpec[]): Uint8Array { +function buildZip(entries: EntrySpec[]): Uint8Array { const parts: Uint8Array[] = []; const central: Uint8Array[] = []; let offset = 0; diff --git a/packages/shared-types/src/index.ts b/packages/shared-types/src/index.ts index 19a97e2ef..d3bc3d705 100644 --- a/packages/shared-types/src/index.ts +++ b/packages/shared-types/src/index.ts @@ -5,25 +5,25 @@ */ // Theme types -export * from './theme.ts'; +export * from './theme'; // Auth types -export * from './auth.ts'; +export * from './auth'; // UI types -export * from './ui.ts'; +export * from './ui'; // Common utility types -export * from './common.ts'; +export * from './common'; // Contact types for cross-app integration -export * from './contact.ts'; +export * from './contact'; // Landing page configuration types -export * from './landing-config.ts'; +export * from './landing-config'; // AI structured-output Zod schemas (shared between mana-api + web frontend) -export * from './ai-schemas.ts'; +export * from './ai-schemas'; // API types export interface User {