Skip to content

Commit

Permalink
fix(types): ensure return type of deleteSession can always be void
Browse files Browse the repository at this point in the history
a type aliased to `void` is not the same as returning `void`, apparently.  this might be fixed in newer TS versions
  • Loading branch information
boneskull committed Jul 3, 2023
1 parent e30ad0e commit ee9b2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/types/lib/driver.ts
Expand Up @@ -441,7 +441,7 @@ export interface ISessionHandler<
* @param sessionId - the id of the session that is to be deleted
* @param driverData - the driver data for other currently-running sessions
*/
deleteSession(sessionId?: string, driverData?: DriverData[]): Promise<DeleteResult>;
deleteSession(sessionId?: string, driverData?: DriverData[]): Promise<DeleteResult | void>;

/**
* Get data for all sessions running on an Appium server
Expand Down

0 comments on commit ee9b2a3

Please sign in to comment.