From dc4476d4802ca9b13d0a74e709831109d38c4a34 Mon Sep 17 00:00:00 2001 From: Max Tower Date: Fri, 13 Oct 2023 05:31:50 -0400 Subject: [PATCH] docs: rename `renderer.d.ts` in documentation (#40137) Rename renderer.d.ts This doesn't compile when the declaration name has the same root name as the TS file. https://github.com/Microsoft/TypeScript/issues/7624#issuecomment-202501572 https://stackoverflow.com/questions/59728371/typescript-d-ts-file-not-recognized --- docs/tutorial/context-isolation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/context-isolation.md b/docs/tutorial/context-isolation.md index 0fce721646df..22b34e86fad3 100644 --- a/docs/tutorial/context-isolation.md +++ b/docs/tutorial/context-isolation.md @@ -82,9 +82,9 @@ contextBridge.exposeInMainWorld('electronAPI', { }) ``` -You can create a `renderer.d.ts` declaration file and globally augment the `Window` interface: +You can create a `interface.d.ts` declaration file and globally augment the `Window` interface: -```typescript title='renderer.d.ts' @ts-noisolate +```typescript title='interface.d.ts' @ts-noisolate export interface IElectronAPI { loadPreferences: () => Promise, }