Skip to content

Commit

Permalink
Merge pull request entur#238 from entur/fix-type-of-focus-scale
Browse files Browse the repository at this point in the history
Fix type of focus.scale
  • Loading branch information
draperunner authored Oct 1, 2021
2 parents c607c15 + 77794e2 commit 91d8c11
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 91d8c11

Please sign in to comment.