diff --git a/docs/api/app.md b/docs/api/app.md index adeb14cd3edd..1ec6565b583a 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -1021,7 +1021,7 @@ Returns [`GPUFeatureStatus`](structures/gpu-feature-status.md) - The Graphics Fe ### `app.getGPUInfo(infoType)` -* `infoType` String - Values can be either `basic` for basic info or `complete` for complete info. +* `infoType` String - Can be `basic` or `complete`. Returns `Promise` @@ -1225,7 +1225,7 @@ systems Application folder. Use in combination with `app.moveToApplicationsFolde * `options` Object (optional) * `conflictHandler` Function (optional) - A handler for potential conflict in move failure. - * `conflictType` String - the type of move conflict encountered by the handler; can be `exists` or `existsAndRunning`, where `exists` means that an app of the same name is present in the Applications directory and `existsAndRunning` means both that it exists and that it's presently running. + * `conflictType` String - The type of move conflict encountered by the handler; can be `exists` or `existsAndRunning`, where `exists` means that an app of the same name is present in the Applications directory and `existsAndRunning` means both that it exists and that it's presently running. Returns `Boolean` - Whether the move was successful. Please note that if the move is successful, your application will quit and relaunch. diff --git a/spec-main/api-app-spec.ts b/spec-main/api-app-spec.ts index b4289182e5b1..97735adc20b9 100644 --- a/spec-main/api-app-spec.ts +++ b/spec-main/api-app-spec.ts @@ -1058,7 +1058,7 @@ describe('app module', () => { it('fails for invalid info_type', () => { const invalidType = 'invalid' const expectedErrorMessage = "Invalid info type. Use 'basic' or 'complete'" - return expect(app.getGPUInfo(invalidType)).to.eventually.be.rejectedWith(expectedErrorMessage) + return expect(app.getGPUInfo(invalidType as any)).to.eventually.be.rejectedWith(expectedErrorMessage) }) })