-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: create widget version 2.9.0 (#213)
- Loading branch information
1 parent
224ecb3
commit d61f96e
Showing
16 changed files
with
3,907 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import type { GeocoderFeature } from '@atb/page-modules/departures'; | ||
|
||
export declare function createWidget({ urlBase, language, }: WidgetOptions): PlannerWebOutput; | ||
|
||
declare type Languages = 'nb' | 'nn' | 'en'; | ||
|
||
export declare type PlannerWebOutput = { | ||
output: string; | ||
init: () => void; | ||
urls: SettingConstants; | ||
}; | ||
|
||
export declare function reverse(urlBase: string, coords: GeolocationCoordinates): Promise<GeocoderFeature | undefined>; | ||
|
||
declare type SettingConstants = { | ||
URL_BASE: string; | ||
URL_JS_UMD: string; | ||
URL_JS_ESM: string; | ||
URL_CSS: string; | ||
}; | ||
|
||
export declare type WidgetOptions = { | ||
urlBase: string; | ||
language?: Languages; | ||
}; | ||
|
||
export { } |
Oops, something went wrong.