Skip to content

Commit f55c5b7

Browse files
committed
chore: comment
1 parent 2cd9c4d commit f55c5b7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ipc-types.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ type IpcApi = {
6767
) => ReturnType< ( typeof import('./ipc-handlers') )[ K ] >;
6868
} & {
6969
/**
70-
* webUtils.getPathForFile is available only inside preload script, that's why this one function is exception and need to be defined here manually.
70+
* `webUtils.getPathForFile` is available only inside preload script, that's why this one
71+
* function is exception and need to be defined here manually.
7172
*
72-
* The nonstandard `path` property of the Web `File` object was added in an early version of Electron as a convenience method for working with native files when doing everything in the renderer was more common.
73-
* However, it represents a deviation from the standard and poses a minor security risk as well, so beginning in Electron 32.0 it has been removed in favor of the [`webUtils.getPathForFile`](api/web-utils.md#webutilsgetpathforfilefile) method.
73+
* See https://www.electronjs.org/docs/latest/breaking-changes#planned-breaking-api-changes-320
74+
* for more details.
7475
*/
7576
showFilePath: ( file: File ) => string;
7677
};

0 commit comments

Comments
 (0)