Skip to content

Commit

Permalink
Merge pull request #109 from Dataport/fix/custom-search-type-fix
Browse files Browse the repository at this point in the history
fix type to allow custom strings for custom methods
  • Loading branch information
warm-coolguy authored Feb 26, 2024
2 parents 257dd3a + 3881419 commit a215cea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/types/custom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## unpublished

- Fix: Add `string` as option for `SearchType` since arbitrary strings can be registered.

## 1.4.1

- Fix: Increase type precision of EPSG codes from `string` to `EPSG:${string}`.
Expand Down
2 changes: 1 addition & 1 deletion packages/types/custom/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface PluginOptions {
export type RenderType = 'iconMenu' | 'independent'

/** Possible search methods by type */
export type SearchType = 'bkg' | 'gazetteer' | 'wfs' | 'mpapi'
export type SearchType = 'bkg' | 'gazetteer' | 'wfs' | 'mpapi' | string

/**
* Additional queryParameters for the GET-Request;
Expand Down

0 comments on commit a215cea

Please sign in to comment.