mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 07:01:10 +02:00
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<ArrayBuffer> so the Blob() constructor accepts it under strict lib.dom Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f36da0526a
commit
93bb94a121
2 changed files with 8 additions and 8 deletions
|
|
@ -29,7 +29,7 @@ interface EntrySpec {
|
||||||
* the parser does not verify it (sha256 on the uncompressed content plays
|
* the parser does not verify it (sha256 on the uncompressed content plays
|
||||||
* that role at a higher level).
|
* that role at a higher level).
|
||||||
*/
|
*/
|
||||||
function buildZip(entries: EntrySpec[]): Uint8Array {
|
function buildZip(entries: EntrySpec[]): Uint8Array<ArrayBuffer> {
|
||||||
const parts: Uint8Array[] = [];
|
const parts: Uint8Array[] = [];
|
||||||
const central: Uint8Array[] = [];
|
const central: Uint8Array[] = [];
|
||||||
let offset = 0;
|
let offset = 0;
|
||||||
|
|
|
||||||
|
|
@ -5,25 +5,25 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Theme types
|
// Theme types
|
||||||
export * from './theme.ts';
|
export * from './theme';
|
||||||
|
|
||||||
// Auth types
|
// Auth types
|
||||||
export * from './auth.ts';
|
export * from './auth';
|
||||||
|
|
||||||
// UI types
|
// UI types
|
||||||
export * from './ui.ts';
|
export * from './ui';
|
||||||
|
|
||||||
// Common utility types
|
// Common utility types
|
||||||
export * from './common.ts';
|
export * from './common';
|
||||||
|
|
||||||
// Contact types for cross-app integration
|
// Contact types for cross-app integration
|
||||||
export * from './contact.ts';
|
export * from './contact';
|
||||||
|
|
||||||
// Landing page configuration types
|
// Landing page configuration types
|
||||||
export * from './landing-config.ts';
|
export * from './landing-config';
|
||||||
|
|
||||||
// AI structured-output Zod schemas (shared between mana-api + web frontend)
|
// AI structured-output Zod schemas (shared between mana-api + web frontend)
|
||||||
export * from './ai-schemas.ts';
|
export * from './ai-schemas';
|
||||||
|
|
||||||
// API types
|
// API types
|
||||||
export interface User {
|
export interface User {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue