Repository: electron/electron (language: cpp)

Issue:
[Bug]: Wrong TypeScript type of ses.getStoragePath
### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

20.0.1

### What operating system are you using?

macOS

### Operating System Version

macOS Monterey 12.5

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

The return type of `ses.getStoragePath()` should be `string | null`. This is returned when actually calling the function and is also described in https://github.com/electron/electron/blob/91f9436ad8e6028bf2909008e5814867289b9310/docs/api/session.md#sesgetstoragepath.

### Actual Behavior

The generated TypeScript type definition says `ses.getStoragePath()` returns `void`, as can also be seen in https://unpkg.com/browse/electron@20.0.1/electron.d.ts#L7763.

### Testcase Gist URL

_No response_

### Additional Information

_No response_


Discussion / hints:

Fix patch:
diff --git a/docs/api/session.md b/docs/api/session.md
index 5dc29aba9b6d7..0e79b332f8513 100644
--- a/docs/api/session.md
+++ b/docs/api/session.md
@@ -1025,7 +1025,7 @@ is emitted.
 
 #### `ses.getStoragePath()`
 
-A `string | null` indicating the absolute file system path where data for this
+Returns `string | null` - The absolute file system path where data for this
 session is persisted on disk.  For in memory sessions this returns `null`.
 
 ### Instance Properties


Test patch: