-
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: generate widget version 2.21.1 (#315)
- Loading branch information
1 parent
302b913
commit 11535e2
Showing
21 changed files
with
5,303 additions
and
75 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,33 @@ | ||
import { GeocoderFeature } from '@atb/page-modules/departures'; | ||
|
||
export declare function createWidget({ urlBase, language, outputOverrideOptions, }: WidgetOptions): PlannerWebOutput; | ||
|
||
declare type Languages = 'nb' | 'nn' | 'en'; | ||
|
||
declare type OutputOverrideOptions = { | ||
inheritFont?: boolean; | ||
singleColumnLayout?: boolean; | ||
}; | ||
|
||
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; | ||
outputOverrideOptions?: Partial<OutputOverrideOptions>; | ||
}; | ||
|
||
export { } |
Oops, something went wrong.