fix: removed duplicated type declarations

This commit is contained in:
2026-02-15 21:56:45 +01:00
parent 870031f1a0
commit 6784ab3f36
5 changed files with 542 additions and 642 deletions

View File

@@ -0,0 +1,9 @@
import { describe, it, expectTypeOf } from 'vitest';
import type { ElectronAPI as SharedElectronAPI } from '../../../src/main/shared/electronApi';
import type { ElectronAPI as RendererElectronAPI } from '../../../src/renderer/types/electron';
describe('Electron API type contract', () => {
it('keeps renderer and shared ElectronAPI contracts in sync', () => {
expectTypeOf<RendererElectronAPI>().toEqualTypeOf<SharedElectronAPI>();
});
});