Skip to content

Commit

Permalink
chore(api/geolocation): fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Oct 3, 2023
1 parent 77622de commit 59a7591
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 6 additions & 8 deletions api/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6072,21 +6072,19 @@ declare module "socket:internal/geolocation" {
/**
* @param {function(GeolocationPosition)} onSuccess
* @param {onError(Error)} onError
* @param {?({ timeout?: number })} [options]
* @param {object=} options
* @param {number=} options.timeout
* @return {Promise}
*/
export function getCurrentPosition(onSuccess: (arg0: GeolocationPosition) => any, onError: any, options?: ({
timeout?: number;
}) | null, ...args: any[]): Promise<any>;
export function getCurrentPosition(onSuccess: (arg0: GeolocationPosition) => any, onError: any, options?: object | undefined, ...args: any[]): Promise<any>;
/**
* @param {function(GeolocationPosition)} onSuccess
* @param {function(Error)} onError
* @param {?({ timeout?: number })} [options]
* @param {object=} options
* @param {number=} options.timeout
* @return {Promise}
*/
export function watchPosition(onSuccess: (arg0: GeolocationPosition) => any, onError: (arg0: Error) => any, options?: ({
timeout?: number;
}) | null, ...args: any[]): Promise<any>;
export function watchPosition(onSuccess: (arg0: GeolocationPosition) => any, onError: (arg0: Error) => any, options?: object | undefined, ...args: any[]): Promise<any>;
export function clearWatch(id: any, ...args: any[]): any;
export namespace platform {
let getCurrentPosition: Function;
Expand Down
6 changes: 4 additions & 2 deletions api/internal/geolocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ export const platform = {
/**
* @param {function(GeolocationPosition)} onSuccess
* @param {onError(Error)} onError
* @param {?({ timeout?: number })} [options]
* @param {object=} options
* @param {number=} options.timeout
* @return {Promise}
*/
export async function getCurrentPosition (
Expand Down Expand Up @@ -212,7 +213,8 @@ export async function getCurrentPosition (
/**
* @param {function(GeolocationPosition)} onSuccess
* @param {function(Error)} onError
* @param {?({ timeout?: number })} [options]
* @param {object=} options
* @param {number=} options.timeout
* @return {Promise}
*/
export function watchPosition (
Expand Down

0 comments on commit 59a7591

Please sign in to comment.