Skip to content

Commit a215cea

Browse files
authored
Merge pull request #109 from Dataport/fix/custom-search-type-fix
fix type to allow custom strings for custom methods
2 parents 257dd3a + 3881419 commit a215cea

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/types/custom/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## unpublished
4+
5+
- Fix: Add `string` as option for `SearchType` since arbitrary strings can be registered.
6+
37
## 1.4.1
48

59
- Fix: Increase type precision of EPSG codes from `string` to `EPSG:${string}`.

packages/types/custom/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface PluginOptions {
3535
export type RenderType = 'iconMenu' | 'independent'
3636

3737
/** Possible search methods by type */
38-
export type SearchType = 'bkg' | 'gazetteer' | 'wfs' | 'mpapi'
38+
export type SearchType = 'bkg' | 'gazetteer' | 'wfs' | 'mpapi' | string
3939

4040
/**
4141
* Additional queryParameters for the GET-Request;

0 commit comments

Comments
 (0)