Skip to content

Commit

Permalink
Fix type of focus.scale
Browse files Browse the repository at this point in the history
  • Loading branch information
draperunner committed Sep 14, 2021
1 parent c607c15 commit 77794e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/geocoder/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ interface FocusApi {
'focus.point.lon': number
'focus.weight'?: number
'focus.function'?: 'linear' | 'exp'
'focus.scale'?: string
'focus.scale'?: number
}

export function transformFocusParam(focus?: Focus): FocusApi | undefined {
Expand Down
2 changes: 1 addition & 1 deletion src/geocoder/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,5 @@ export interface Focus {
*
* @defaultValue 2500
*/
scale?: string
scale?: number
}
4 changes: 2 additions & 2 deletions src/geocoderLegacy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ interface BoundaryApi {
interface FocusApi {
'focus.weight'?: number
'focus.function'?: 'linear' | 'exp'
'focus.scale'?: string
'focus.scale'?: number
}

export interface GetFeaturesParams {
Expand Down Expand Up @@ -95,7 +95,7 @@ export interface GetFeaturesParams {
*
* @defaultValue 2500
*/
scale?: string
scale?: number
}
multiModal?: 'parent' | 'child' | 'all'
sources?: string[]
Expand Down

0 comments on commit 77794e2

Please sign in to comment.